/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
}

/* Login card styles */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo i {
    font-size: 64px;
    color: #3b82f6;
    margin-bottom: 20px;
    display: block;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

.subtitle {
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
}

/* Form styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}

.form-group label i {
    color: #3b82f6;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #1e293b;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

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

/* Captcha styles */
.captcha-container {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.captcha-display {
    flex: 1;
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
    color: #1e293b;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
}

.captcha-refresh {
    background: #3b82f6;
    border: none;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 20px;
}

.captcha-refresh:hover {
    background: #2563eb;
    transform: rotate(90deg);
}

.captcha-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
}

.captcha-hint i {
    color: #3b82f6;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
}

.checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Button styles */
.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-family: 'Noto Sans SC', sans-serif;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-guest {
    width: 100%;
    padding: 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: 'Noto Sans SC', sans-serif;
}

.btn-guest:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #94a3b8;
}

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

.divider span {
    padding: 0 16px;
    font-size: 14px;
}

/* Footer */
.footer {
    margin-top: 32px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.footer a {
    color: #3b82f6;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.version {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
}

/* Features section */
.features {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.features h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e293b;
}

.features h2 i {
    color: #f59e0b;
}

.features ul {
    list-style: none;
    margin-bottom: 32px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #475569;
}

.features li i {
    color: #10b981;
    font-size: 14px;
}

.demo-credentials {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #3b82f6;
}

.demo-credentials h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 16px;
    color: #1e293b;
}

.demo-credentials h3 i {
    color: #3b82f6;
}

.demo-credentials p {
    margin-bottom: 8px;
    color: #475569;
    font-size: 14px;
}

.demo-credentials strong {
    color: #1e293b;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(150%);
    transition: transform 0.4s ease;
    z-index: 1000;
    max-width: 400px;
    color: #1e293b;
}

.notification.show {
    transform: translateX(0);
}

.close-notification {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-notification:hover {
    color: #475569;
}

/* Chat page styles (for future use) */
.chat-container {
    display: none;
    flex-direction: column;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

.chat-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-input-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .login-card,
    .features {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .captcha-display {
        font-size: 24px;
        letter-spacing: 6px;
        min-height: 60px;
    }
}