/* Auth styles */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 32px;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.auth-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s;
    background: #f9fafb;
}

.auth-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form-input.error {
    border-color: #ef4444;
}

.auth-form-input.success {
    border-color: #10b981;
}

.auth-form-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

.auth-form-error.show {
    display: block;
}

.auth-form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.auth-form-checkbox input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #3b82f6;
}

.auth-form-checkbox label {
    font-size: 14px;
    color: #374151;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: auth-spinner 0.8s linear infinite;
}

@keyframes auth-spinner {
    to {
        transform: rotate(360deg);
    }
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #6b7280;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    padding: 0 12px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.auth-link {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.auth-switch a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-demo {
    margin-top: 24px;
    padding: 16px;
    background: #eff6ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.auth-demo-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 8px;
}

.auth-demo-text {
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 640px) {
    .auth-card {
        margin: 16px;
        padding: 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}

/* Animation for auth transition */
.auth-transition-enter {
    opacity: 0;
    transform: translateY(20px);
}

.auth-transition-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.auth-transition-exit {
    opacity: 1;
    transform: translateY(0);
}

.auth-transition-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}