/* ===========================
   RESET
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #f3f4f6;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}


/* ===========================
   HEADER
=========================== */

.auth-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 88px;
    padding: 16px 24px;

    background: #111111;
    border-bottom: 3px solid #2563eb;
}

.auth-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 34px;
}

.auth-back-link {
    position: absolute;
    left: 24px;

    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.auth-back-link:hover {
    text-decoration: underline;
}


/* ===========================
   PAGE
=========================== */

.auth-page {
    display: flex;
    justify-content: center;

    width: 100%;
    padding: 38px 16px;
}

.auth-card {
    width: min(520px, 100%);
    padding: 30px;

    border: 1px solid #dce5ef;
    border-radius: 14px;

    background: #ffffff;

    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

.auth-card-heading {
    margin-bottom: 25px;
    text-align: center;
}

.auth-card-heading h2 {
    margin-bottom: 8px;
    color: #123d73;
    font-size: 28px;
}

.auth-card-heading p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}


/* ===========================
   FORM
=========================== */

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 7px;

    color: #26384b;
    font-size: 14px;
    font-weight: 700;
}

.auth-form-group input {
    width: 100%;
    height: 45px;

    padding: 0 12px;

    border: 1px solid #b9c9da;
    border-radius: 7px;

    background: #ffffff;
    color: #1f2937;

    font: inherit;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.auth-form-group small {
    display: block;
    margin-top: 6px;

    color: #6b7280;
    font-size: 12px;
}


/* ===========================
   PASSWORD
=========================== */

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;

    transform: translateY(-50%);

    padding: 5px 9px;

    border: none;
    border-radius: 5px;

    background: #eef2f7;
    color: #334155;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.password-toggle:hover {
    background: #dfe7f0;
}


/* ===========================
   BUTTONS
=========================== */

.auth-primary-button,
.google-button {
    width: 100%;
    min-height: 46px;

    padding: 11px 18px;

    border-radius: 7px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.auth-primary-button {
    border: none;
    background: #2563eb;
    color: #ffffff;
}

.auth-primary-button:hover {
    background: #1d4ed8;
}

.auth-primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.google-button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.google-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* ===========================
   MESSAGES
=========================== */

.auth-message {
    min-height: 20px;
    margin-top: 14px;

    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.auth-message.success {
    color: #15803d;
}

.auth-message.error {
    color: #b91c1c;
}


/* ===========================
   DIVIDER
=========================== */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 24px 0;
    color: #94a3b8;
}

.auth-divider::before,
.auth-divider::after {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
    content: "";
}

.google-note {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.auth-switch-text {
    margin-top: 24px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.auth-switch-text a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}


/* ===========================
   MOBILE
=========================== */

@media (max-width: 600px) {

    .auth-header {
        min-height: 74px;
        padding: 12px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-back-link {
        left: 12px;
        font-size: 12px;
    }

    .auth-page {
        padding: 20px 12px;
    }

    .auth-card {
        padding: 22px 17px;
    }

    .auth-card-heading h2 {
        font-size: 23px;
    }
}

/* ===========================
   GOOGLE SIGN-IN
=========================== */

.google-signin-wrapper{
    width:100%;
    margin-top:12px;

    display:flex;
    flex-direction:column;
    align-items:center;
}

#google-signin-button{
    width:100%;

    display:flex;
    justify-content:center;
    align-items:center;
}

#google-signin-button > div{
    display:flex !important;
    justify-content:center !important;
}

#google-signin-button iframe{
    margin:0 auto !important;
}

#google-login-message,
#google-register-message{
    margin-top:12px;
    text-align:center;
}