* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand: #0a58ca;
    --brand-hover: #0847a5;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d9dee7;
    --bg: #f5f7fb;
    --card: #ffffff;
    --danger-bg: #fdecec;
    --danger-text: #b42318;
    --success-bg: #ecfdf3;
    --success-text: #067647;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

body.auth-page {
    min-height: 100vh;
    background: var(--bg);
    font-family: Arial, sans-serif;
    color: var(--text);
    display: flex;
    justify-content: center;
    padding: 12px 16px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
    overflow: hidden;
}

.auth-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111111;
}

.auth-message {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.auth-message-error {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.auth-message-success {
    background: var(--success-bg);
    color: var(--success-text);
}

/* =========================
   SOCIAL BUTTONS
========================= */
.social-auth {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.social-btn {
    width: 190px;
    height: 44px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.social-btn,
.social-btn * {
    text-decoration: none !important;
}

.social-btn-google {
    color: #202124;
}

.social-btn-google:hover {
    background: #f8fafc;
}

.social-btn-facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.social-btn-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
}

.social-btn i {
    font-size: 16px;
}

.social-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* =========================
   GOOGLE CUSTOM BUTTON
========================= */
.google-custom-wrap {
    position: relative;
    width: 190px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
}

.google-fake-btn {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.google-real-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 999px;
    overflow: hidden;
}

.google-real-overlay,
.google-real-overlay * {
    border-radius: 999px !important;
}

.google-real-overlay > div,
.google-real-overlay iframe,
.google-real-overlay div[role="button"] {
    width: 100% !important;
    height: 100% !important;
    opacity: 0.001 !important;
}

/* =========================
   DIVIDER
========================= */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 18px 0 20px;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #d6dbe5;
    transform: translateY(-50%);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background: #fff;
    color: var(--muted);
    font-size: 15px;
}

/* =========================
   FORM
========================= */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #4b5563;
}

.input-field {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field::placeholder {
    color: #9aa3b2;
}

.input-field:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.12);
}

.password-wrapper {
    position: relative;
}

.input-field-password {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #7b8190;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-password i {
    font-size: 19px;
}

.primary-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.primary-btn:hover {
    background: var(--brand-hover);
}

/* =========================
   LINKS / NOTE
========================= */
.bottom-link {
    margin-top: 22px;
    text-align: center;
    font-size: 16px;
    color: #4b5563;
}

.bottom-link a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

.bottom-link a:hover {
    text-decoration: underline;
}

.auth-note {
    margin-top: 10px;
    text-align: center;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}

.auth-note a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.auth-note a:hover {
    text-decoration: underline;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 575px) {
    body.auth-page {
        padding: 12px;
        align-items: flex-start;
    }

    .auth-card {
        max-width: 100%;
        border-radius: 14px;
        padding: 20px 16px 18px;
        margin: 0 auto;
    }

    .auth-title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .social-auth {
        gap: 10px;
        flex-wrap: wrap;
    }

    .social-btn,
    .google-custom-wrap {
        width: 100%;
        max-width: 190px;
    }

    .social-btn {
        height: 44px;
        font-size: 14px;
        padding: 0 10px;
    }

    .social-btn span {
        font-size: 14px;
    }

    .social-btn i {
        font-size: 15px;
    }

    .input-field {
        height: 48px;
        font-size: 14px;
    }

    .primary-btn {
        height: 48px;
        font-size: 16px;
    }

    .bottom-link {
        font-size: 15px;
    }

    .auth-note {
        font-size: 10px;
        line-height: 1.3;
    }
}

