* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #202124;
    color: #e8eaed;
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}


/* =========================
   CARD
   ========================= */

.card {
    width: min(1095px, calc(100% - 40px));

    min-height: 418px;

    background: #0f0f0f;

    border-radius: 28px;

    padding: 42px 38px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;
}


/* =========================
   LEFT
   ========================= */

.left {
    padding-top: 0;
}


/* =========================
   GOOGLE LOGO
   ========================= */

.logo {
    width: 45px;
    height: 45px;

    margin-bottom: 30px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo svg {
    width: 42px;
    height: 42px;

    display: block;
}


/* =========================
   TITLE
   ========================= */

h1 {
    margin: 0 0 18px;

    font-size: 38px;

    font-weight: 400;
}

.subtitle {
    margin: 0;

    font-size: 17px;

    color: #d1d1d1;
}


/* =========================
   RIGHT
   ========================= */

.right {
    display: flex;

    flex-direction: column;

    padding-top: 78px;
}

.field {
    position: relative;
}


/* =========================
   INPUT
   ========================= */

input {
    width: 100%;

    height: 58px;

    border: 1px solid #8ab4f8;

    border-radius: 4px;

    background: transparent;

    color: white;

    font-size: 17px;

    padding: 12px;

    outline: none;
}


/* LABEL */

.field label {
    position: absolute;

    top: -9px;
    left: 12px;

    background: #0f0f0f;

    padding: 0 5px;

    color: #8ab4f8;

    font-size: 13px;
}


/* =========================
   LINKS
   ========================= */

a {
    text-decoration: none;
}

.forgot {
    color: #8ab4f8;

    font-weight: bold;

    margin-top: 12px;

    font-size: 14px;
}

.guest {
    margin-top: 48px;

    line-height: 1.5;

    color: #b8b8b8;

    font-size: 14px;
}

.guest a {
    color: #8ab4f8;

    font-weight: bold;
}


/* =========================
   ACTIONS
   ========================= */

.actions {
    margin-top: auto;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 40px;
}

.create {
    color: #8ab4f8;

    font-weight: bold;

    font-size: 14px;
}


/* =========================
   BUTTON
   ========================= */

button {
    border: none;

    background: #a8c7fa;

    color: #17213a;

    font-size: 15px;

    font-weight: bold;

    padding: 13px 25px;

    border-radius: 25px;

    cursor: pointer;
}

button:hover {
    background: #b8d1ff;
}


/* =========================
   ACCOUNT
   ========================= */

.account {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 5px 10px;
    border: 1px solid #777;
    border-radius: 20px;

    color: white;
    background: #111;
    font-size: 13px;
}

.account-icon {
    margin-right: 8px;
}

.account .arrow {
    margin-left: 15px;
}


/* =========================
   SHOW PASSWORD
   ========================= */

.show-password {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 15px;

    color: #e8eaed;

    font-size: 14px;
}

.show-password input {
    width: auto;

    height: auto;
}


/* =========================
   FOOTER
   ========================= */

footer {
    width: min(1095px, calc(100% - 40px));

    display: flex;

    justify-content: space-between;

    padding: 25px 16px;

    color: #b8b8b8;

    font-size: 13px;
}

footer div {
    display: flex;

    gap: 30px;
}

footer a {
    color: #b8b8b8;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 750px) {
    body {
        margin: 0;
        padding: 0;
    }

    .page {
        min-height: 100vh;
        width: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 40px 24px;

        border-radius: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
    }

    .left,
    .right {
        width: 100%;
        padding: 0;
    }

    .logo {
        margin-bottom: 25px;
    }

    h1 {
        font-size: 30px;
        margin-bottom: 18px;
    }

    .subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .right {
        display: flex;
        flex-direction: column;
    }

    .field {
        width: 100%;
    }

    input {
        width: 100%;
        height: 54px;
        font-size: 16px;
    }

    .guest {
        margin-top: 35px;
        line-height: 1.5;
    }

    .actions {
        margin-top: 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    footer {
        width: 100%;
        padding: 20px;
    }
}


/* =========================
   ERROR EKRAN
   ========================= */

.error-overlay {
    display: none;
    position: fixed;
    inset: 0;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
}

.error-modal {
    width: min(420px, calc(100% - 40px));
    padding: 30px;

    background: #0f0f0f;
    border-radius: 20px;

    text-align: center;
}

.error-modal h2 {
    margin: 0 0 12px;
}

.error-modal p {
    color: #b8b8b8;
    margin-bottom: 25px;
}


/* =========================
   DRUGI EKRAN
   ========================= */



/* =========================
   DRUGI EKRAN
   ========================= */

#welcomeBox {
    display: none;

    width: min(1095px, calc(100% - 40px));
    min-height: 418px;

    padding: 42px 38px;

    background: #0f0f0f;
    border-radius: 28px;

    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

#welcomeBox.show {
    display: grid;
}


/* LIJEVA STRANA */

#welcomeBox .welcome-left {
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#welcomeBox .welcome-left .logo {
    width: 45px;
    height: 45px;

    margin-bottom: 30px;
}

#welcomeBox .welcome-left h1 {
    margin: 0 0 18px;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 400;
}


/* ACCOUNT */

#welcomeBox .account {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    max-width: 100%;

    padding: 5px 10px;

    border: 1px solid #777;
    border-radius: 20px;

    background: #111;
    color: white;

    font-size: 13px;
}

#welcomeBox .account-icon {
    margin-right: 0;
}

#welcomeBox .account .arrow {
    margin-left: 7px;
}


/* DESNA STRANA */

#welcomeBox .welcome-right {
    min-width: 0;

    padding-top: 78px;

    display: flex;
    flex-direction: column;
}


/* PASSWORD */

#welcomeBox .password-box {
    position: relative;
    width: 100%;
}

#welcomeBox .password-box label {
    position: absolute;

    top: -8px;
    left: 12px;

    z-index: 2;

    padding: 0 5px;

    background: #0f0f0f;
    color: #8ab4f8;

    font-size: 13px;
}

#welcomeBox .password-box input {
    width: 100%;
    height: 58px;

    padding: 12px;

    border: 1px solid #8ab4f8;
    border-radius: 4px;

    background: transparent;
    color: white;

    font-size: 17px;

    outline: none;
}


/* CHECKBOX */

#welcomeBox .password-toggle {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 15px;

    color: #e8eaed;

    font-size: 14px;
}

#welcomeBox .password-toggle input {
    width: 18px;
    height: 18px;

    margin: 0;
}


/* DONJI RED */

#welcomeBox .welcome-bottom {
    width: 100%;

    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

#welcomeBox .password-forgot {
    color: #8ab4f8;

    font-size: 14px;
    font-weight: bold;

    text-decoration: none;
}

#welcomeBox .welcome-bottom button {
    border: none;

    background: #a8c7fa;
    color: #17213a;

    font-size: 15px;
    font-weight: bold;

    padding: 13px 25px;

    border-radius: 25px;

    cursor: pointer;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 750px) {

    #welcomeBox {
        width: 100%;
        min-height: 100vh;

        padding: 40px 24px;

        border-radius: 0;

        display: none;

        grid-template-columns: 1fr;

        gap: 45px;
    }

    #welcomeBox.show {
        display: flex;
    }

    #welcomeBox .welcome-left,
    #welcomeBox .welcome-right {
        width: 100%;
        padding: 0;
    }

    #welcomeBox .welcome-left .logo {
        margin-bottom: 25px;
    }

    #welcomeBox .welcome-left h1 {
        font-size: 30px;
    }

    #welcomeBox .welcome-right {
        padding: 0;
    }

    #welcomeBox .welcome-bottom {
        margin-top: 45px;
    }
}

