/* Auth section standalone — variables + section styles only */
:root {
    --cyan:  #4285f4;
    --cyan-hover:  #4285f4;
    --text-primary: #222;
    --text-secondary: #555;
    --text-light: #888;
    --bg-white: #ffffff;
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Roboto Slab', serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================
   AUTH SECTION
   ================== */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px;
    background: #f0f2f5;
}

/* ==================
   AUTH CARD
   ================== */
.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
}

.auth-card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 28px;
}

/* ==================
   SSO BUTTONS
   ================== */
.sso-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: none;
}

.sso-btn:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.sso-btn i {
    font-size: 18px;
}

.sso-btn--google {
    background: #ffffff;
    color: #444;
    border: 1px solid #ddd;
}

.sso-btn--google:hover {
    background: #fafafa;
    border-color: #ccc;
}

.sso-btn--google i {
    color: #4285f4;
}

.sso-btn--facebook {
    background: #1877f2;
    color: #ffffff;
    border: 1px solid #1877f2;
}

.sso-btn--facebook:hover {
    background: #166fe5;
}

/* ==================
   DIVIDER WITH OR
   ================== */
.divider-or {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider-or span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================
   MAGIC LINK SECTION
   ================== */
.magic-link-section {
    margin-bottom: 0;
}

.magic-link-section .section-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.auth-input-group {
    margin-bottom: 16px;
}

.auth-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
    color: #aaa;
}

.auth-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.btn-magic-link {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: #4285f4;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-magic-link:hover {
    background: var(--cyan-hover);
}

.auth-helper-text {
    font-size: 12.5px;
    color: var(--text-light);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer-text a {
    color: var(--cyan);
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer-text a:hover {
    color: var(--cyan-hover);
}

@media (max-width: 520px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 8px;
    }

    .auth-card-title {
        font-size: 21px;
        margin-bottom: 24px;
    }

    .sso-btn {
        padding: 11px 16px;
        font-size: 14px;
    }

    .auth-section {
        padding: 40px 16px;
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding: 24px 18px;
    }

    .auth-card-title {
        font-size: 19px;
    }
}

.success-message {
    color: #2e7d32; /* green */
    font-weight: 600;
    margin-bottom: 10px;
}