/* Authentication Pages Styling - Following Manager UI Standards */

/* Layout and structure */
.min-vh-75 {
    min-height: 75vh;
}

.auth-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Authentication card styling */
.auth-card {
    transition: all 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    will-change: transform;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Icon styling */
.auth-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    font-size: 1rem;
    font-weight: 500;
}

/* Form inputs */
.auth-input {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    transform: translateY(-1px);
}

/* Login page specific input focus */
.login-page .auth-input:focus {
    border-color: var(--tozae-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 140, 251, 0.25);
}

.login-page .form-floating > .auth-input:focus ~ label,
.login-page .form-floating > .auth-input:not(:placeholder-shown) ~ label {
    color: var(--tozae-primary);
    font-weight: 600;
}

/* Register page specific input focus */
.register-page .auth-input:focus {
    border-color: var(--tozae-success);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.register-page .form-floating > .auth-input:focus ~ label,
.register-page .form-floating > .auth-input:not(:placeholder-shown) ~ label {
    color: var(--tozae-success);
    font-weight: 600;
}

/* Button styling */
.auth-btn {
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

/* Login button (primary) */
.login-page .auth-btn {
    background: linear-gradient(135deg, var(--tozae-primary), var(--tozae-primary-hover));
}

.login-page .auth-btn:hover {
    box-shadow: 0 0.5rem 1rem rgba(37, 140, 251, 0.3);
}

/* Register button (success) */
.register-page .auth-btn {
    background: linear-gradient(135deg, var(--tozae-success), #1e7e34);
}

.register-page .auth-btn:hover {
    box-shadow: 0 0.5rem 1rem rgba(40, 167, 69, 0.3);
}

/* External login buttons */
.auth-external-btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-external-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.login-page .auth-external-btn {
    border-color: var(--tozae-primary);
    color: var(--tozae-primary);
}

.login-page .auth-external-btn:hover {
    background-color: var(--tozae-primary);
    border-color: var(--tozae-primary);
}

.register-page .auth-external-btn {
    border-color: var(--tozae-success);
    color: var(--tozae-success);
}

.register-page .auth-external-btn:hover {
    background-color: var(--tozae-success);
    border-color: var(--tozae-success);
}

/* Links */
.auth-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.auth-link:hover {
    text-decoration: none;
    transform: translateX(3px);
}

.login-page .auth-link {
    color: var(--tozae-primary);
}

.login-page .auth-link:hover {
    color: var(--tozae-primary-hover);
}

.register-page .auth-link {
    color: var(--tozae-success);
}

.register-page .auth-link:hover {
    color: #1e7e34;
}

/* Dividers */
.auth-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 1.5rem 0;
}

/* Form elements */
.form-check-input:checked {
    background-color: var(--tozae-primary);
    border-color: var(--tozae-primary);
}

.form-check-input:focus {
    border-color: var(--tozae-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 140, 251, 0.25);
}

/* Alert styling */
.alert-danger {
    border-radius: 0.75rem;
    border: none;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

/* Mock login buttons */
.mock-login-btn {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.mock-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Form validation */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: var(--tozae-success);
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-card {
        margin: 1rem;
    }
    
    .auth-icon {
        width: 60px;
        height: 60px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Accessibility improvements */
.auth-btn:focus-visible,
.auth-external-btn:focus-visible,
.auth-link:focus-visible {
    outline: 2px solid var(--tozae-primary);
    outline-offset: 2px;
}

/* Loading states */
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Performance optimizations */
.auth-card,
.auth-btn,
.auth-external-btn,
.auth-input {
    contain: layout;
}

/* Print styles */
@media print {
    .auth-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .auth-btn,
    .auth-external-btn {
        background: transparent !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
}