* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.sg-light-auth-body {
    min-height: 100vh;
    background-color: #f8f6f0;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(85, 130, 34, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(184, 93, 25, 0.06) 0%, transparent 45%);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.sg-auth-shell {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sg-auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.sg-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #0f172a;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.3px;
}

.sg-auth-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #558222;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(85, 130, 34, 0.25);
}

.sg-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 7px 13px;
    border-radius: 100px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.sg-auth-back-link:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateX(-2px);
}

.login-container {
    width: 100%;
}

.login-glass {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 36px 32px 30px;
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
    color: #0f172a;
}

.sg-studio-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(85, 130, 34, 0.1);
    color: #558222;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid rgba(85, 130, 34, 0.2);
}

.sg-social-only-wrap {
    text-align: center;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.login-header p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    color: #166534;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: #0f172a;
}

.auth-tab.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.input-group {
    position: relative;
    margin-bottom: 14px;
}

.input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus {
    border-color: #558222;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(85, 130, 34, 0.12);
}

.input-group input::placeholder {
    color: #94a3b8;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    color: #475569;
    font-weight: 500;
}

.form-options input[type="checkbox"] {
    accent-color: #558222;
    width: 15px;
    height: 15px;
}

.forgot-pwd {
    color: #558222;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-pwd:hover {
    color: #3f6219;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px 18px;
    background: #558222;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px -6px rgba(85, 130, 34, 0.45);
}

.login-btn:hover {
    background: #466d1b;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(85, 130, 34, 0.55);
}

.social-login-divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32%;
    height: 1px;
    background: #e2e8f0;
}

.social-login-divider::before { left: 0; }
.social-login-divider::after { right: 0; }

.social-login-divider span {
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.social-login-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 14px 18px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.social-btn.google {
    background: #ffffff;
    border: 2px solid #0f172a;
    box-shadow: 0 4px 0 #0f172a;
}

.social-btn.google:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #0f172a;
}

.social-btn.google:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0f172a;
}

.social-btn-hero {
    padding: 15px 20px;
    font-size: 15.5px;
}

.sg-feature-perks {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.sg-perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.sg-perk-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(85, 130, 34, 0.12);
    color: #558222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sg-auth-footer-links {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.sg-auth-footer-links a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sg-auth-footer-links a:hover {
    color: #558222;
}

@media (max-width: 480px) {
    .login-glass {
        padding: 28px 20px 24px;
        border-radius: 20px;
    }
    .login-header h2 {
        font-size: 24px;
    }
}
