﻿body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
            width: 100%;
            max-width: 400px;
        }
        
        .auth-header {
            text-align: center;
            margin-bottom: 32px;
        }
        
        .auth-logo {
            font-family: 'Playfair Display', serif;
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 8px;
            letter-spacing: 0.02em;
        }
        
        .auth-subtitle {
            font-size: 14px;
            color: var(--text-sub);
        }
        
        .auth-tabs {
            display: flex;
            background: var(--bg-sub);
            border-radius: 12px;
            padding: 4px;
            margin-bottom: 24px;
        }
        
        .auth-tab {
            flex: 1;
            padding: 12px;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-sub);
            background: transparent;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .auth-tab.active {
            background: var(--white);
            color: var(--primary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .auth-form {
            display: none;
        }
        
        .auth-form.active {
            display: block;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-main);
            margin-bottom: 8px;
        }
        
        .form-input {
            width: 100%;
            height: 48px;
            padding: 0 16px;
            border: 1px solid var(--line);
            border-radius: 12px;
            font-size: 15px;
            background: var(--white);
            transition: border-color 0.2s;
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .form-input::placeholder {
            color: #CCC;
        }
        
        .form-hint {
            font-size: 12px;
            color: var(--text-sub);
            margin-top: 6px;
        }
        
        .btn-submit {
            width: 100%;
            height: 52px;
            background: var(--primary);
            color: var(--text-inverse);
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 8px;
            transition: all 0.2s;
        }
        
        .btn-submit:hover {
            background: #1A2F50;
        }
        
        .btn-submit:disabled {
            background: #CCC;
            cursor: not-allowed;
        }
        
        .btn-submit.loading {
            position: relative;
            color: transparent;
        }
        
        .btn-submit.loading::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            border: 2px solid #fff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        
        @keyframes spin {
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }
        
        .divider {
            display: flex;
            align-items: center;
            margin: 24px 0;
        }
        
        .divider::before,
        .divider::after {
            flex: 1;
            height: 1px;
            background: var(--line);
            content: '';
        }
        
        .divider span {
            padding: 0 16px;
            font-size: 12px;
            color: var(--text-sub);
        }
        
        .error-message {
            background: #FFEBEE;
            color: #C62828;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 13px;
            margin-bottom: 16px;
            display: none;
        }
        
        .error-message.show {
            display: block;
        }
        
        .auth-footer {
            text-align: center;
            margin-top: 32px;
        }
        
        .auth-footer p {
            font-size: 11px;
            color: #AAA;
        }
        
        .btn-google {
            width: 100%;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: var(--bg-elevated);
            border: 1px solid var(--line);
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-main);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-google:hover {
            background: #F5F5F5;
            border-color: #CCC;
        }
        
        .resend-section {
            background: #FFF3E0;
            border: 1px solid #FFB74D;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
            display: none;
        }
        
        .resend-section.show {
            display: block;
        }
        
        .resend-title {
            font-size: 13px;
            font-weight: 600;
            color: #E65100;
            margin-bottom: 8px;
        }
        
        .resend-text {
            font-size: 12px;
            color: var(--text-main);
            margin-bottom: 12px;
        }
        
        .btn-resend {
            width: 100%;
            padding: 10px;
            background: #FF9800;
            color: var(--text-inverse);
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        
        .btn-resend:disabled {
            cursor: not-allowed;
        }
        
        .btn-resend .spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: var(--bg-elevated);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            vertical-align: middle;
            margin-right: 6px;
        }
        
@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-logo-img {
    height: 48px;
    width: auto;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0F1F38;
    cursor: pointer;
}

.remember-me span {
    font-size: 13px;
    color: #8B95A1;
}
