/* Modern Authentication Styles */
:root {
    --auth-primary: #3b82f6;
    --auth-primary-hover: #2563eb;
    --auth-primary-light: #dbeafe;
    --auth-success: #10b981;
    --auth-success-hover: #059669;
    --auth-error: #ef4444;
    --auth-error-light: #fef2f2;
    --auth-warning: #f59e0b;
    --auth-text: #1f2937;
    --auth-text-light: #6b7280;
    --auth-text-muted: #9ca3af;
    --auth-bg: #ffffff;
    --auth-bg-secondary: #f9fafb;
    --auth-border: #e5e7eb;
    --auth-border-focus: #3b82f6;
    --auth-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --auth-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --auth-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    :root {
        --auth-primary: #60a5fa;
        --auth-primary-hover: #3b82f6;
        --auth-text: #f9fafb;
        --auth-text-light: #d1d5db;
        --auth-text-muted: #9ca3af;
        --auth-bg: #111827;
        --auth-bg-secondary: #1f2937;
        --auth-border: #374151;
        --auth-border-focus: #60a5fa;
        --auth-error-light: #7f1d1d;
    }
}

/* Auth page layout */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--auth-bg);
    border-radius: 16px;
    box-shadow: var(--auth-shadow-xl);
    padding: 2rem;
    border: 1px solid var(--auth-border);
}

/* Auth header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--auth-text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Form styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--auth-border);
    border-radius: 8px;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--auth-border-focus);
    box-shadow: 0 0 0 3px var(--auth-primary-light);
}

.form-input.error {
    border-color: var(--auth-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--auth-text-muted);
    transition: color 0.2s ease;
}

.form-input:focus + .input-icon {
    color: var(--auth-primary);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    margin-top: 0.25rem;
}

/* Checkbox styles */
.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--auth-text-light);
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--auth-border);
    border-radius: 4px;
    background: var(--auth-bg);
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Password strength indicator */
.password-strength {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.password-strength.very-weak {
    color: #dc2626;
}

.password-strength.weak {
    color: #f59e0b;
}

.password-strength.good {
    color: #10b981;
}

.password-strength.strong {
    color: #059669;
}

/* Password match indicator */
.password-match {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.password-match.match {
    color: var(--auth-success);
}

.password-match.no-match {
    color: var(--auth-error);
}

/* Button styles */
.auth-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.auth-button-primary {
    background: var(--auth-primary);
    color: white;
}

.auth-button-primary:hover:not(:disabled) {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--auth-shadow-lg);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Button spinner */
.button-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message styles */
.error-message, .success-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.error-message {
    background: var(--auth-error-light);
    color: var(--auth-error);
    border: 1px solid var(--auth-error);
}

.success-message {
    background: #d1fae5;
    color: var(--auth-success);
    border: 1px solid var(--auth-success);
}

.hidden {
    display: none !important;
}

/* Auth info section */
.auth-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--auth-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--auth-border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1rem;
}

.info-text {
    font-size: 0.875rem;
    color: var(--auth-text-light);
}

/* Auth footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--auth-border);
}

.auth-link-text {
    color: var(--auth-text-light);
    font-size: 0.875rem;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.8125rem;
    }
}


