/* Authentication Pages Styling - Bootstrap 5 Based */

/* Custom CSS Variables */
:root {
    --auth-primary: #0d6efd;
    --auth-secondary: #6c757d;
    --auth-success: #198754;
    --auth-danger: #dc3545;
    --auth-warning: #ffc107;
    --auth-info: #0dcaf0;
    --auth-light: #f8f9fa;
    --auth-dark: #212529;
    --auth-gradient-start: #667eea;
    --auth-gradient-end: #764ba2;
    --auth-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --auth-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Body and Layout */
.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--auth-gradient-start) 0%, var(--auth-gradient-end) 100%);
    min-height: 100vh;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: var(--auth-shadow-lg);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

/* Split Layout */
.auth-split {
    display: flex;
    min-height: 600px;
}

.auth-info-panel {
    background: linear-gradient(135deg, var(--auth-primary) 0%, #6610f2 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.auth-info-content {
    position: relative;
    z-index: 1;
}

.auth-form-panel {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
}

.auth-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    font-weight: 600;
    color: var(--auth-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.auth-form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.auth-form-control.is-invalid {
    border-color: var(--auth-danger);
}

.auth-form-control.is-valid {
    border-color: var(--auth-success);
}

/* Input Groups */
.auth-input-group {
    position: relative;
}

.auth-input-group-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-secondary);
    z-index: 3;
}

.auth-input-group .auth-form-control {
    padding-left: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-secondary);
    cursor: pointer;
    z-index: 3;
}

.auth-password-toggle:hover {
    color: var(--auth-primary);
}

/* Buttons */
.auth-btn {
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--auth-primary) 0%, #0056b3 100%);
    color: white;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, var(--auth-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--auth-shadow);
    color: white;
}

.auth-btn-outline {
    background: transparent;
    border: 2px solid var(--auth-primary);
    color: var(--auth-primary);
}

.auth-btn-outline:hover {
    background: var(--auth-primary);
    color: white;
}

.auth-btn-social {
    background: white;
    border: 2px solid #e9ecef;
    color: var(--auth-dark);
    margin-bottom: 0.75rem;
}

.auth-btn-social:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

.auth-btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.auth-btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.auth-btn-github:hover {
    border-color: #333;
    color: #333;
}

/* Loading State */
.auth-btn-loading {
    position: relative;
    color: transparent !important;
}

.auth-btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: auth-spin 1s linear infinite;
}

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

/* Alerts */
.auth-alert {
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
}

.auth-alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--auth-success);
}

.auth-alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--auth-danger);
}

.auth-alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.auth-alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
}

.auth-alert-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

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

.auth-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--auth-secondary);
}

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

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Password Strength */
.auth-password-strength {
    margin-top: 0.5rem;
}

.auth-strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.auth-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.auth-strength-weak .auth-strength-fill {
    width: 25%;
    background: var(--auth-danger);
}

.auth-strength-fair .auth-strength-fill {
    width: 50%;
    background: var(--auth-warning);
}

.auth-strength-good .auth-strength-fill {
    width: 75%;
    background: var(--auth-info);
}

.auth-strength-strong .auth-strength-fill {
    width: 100%;
    background: var(--auth-success);
}

.auth-strength-requirements {
    font-size: 0.875rem;
}

.auth-requirement {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    color: var(--auth-secondary);
}

.auth-requirement.met {
    color: var(--auth-success);
}

.auth-requirement-icon {
    margin-right: 0.5rem;
    width: 1rem;
}

/* Checkbox and Radio */
.auth-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.auth-check-input {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.auth-check-label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: var(--auth-secondary);
    font-size: 0.875rem;
}

/* Features List */
.auth-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.auth-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-feature-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column;
    }
    
    .auth-info-panel {
        padding: 2rem;
        text-align: center;
    }
    
    .auth-form-panel {
        padding: 2rem;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        margin: 0;
        border-radius: 0.75rem;
    }
}

@media (max-width: 576px) {
    .auth-info-panel,
    .auth-form-panel {
        padding: 1.5rem;
    }
    
    .auth-btn {
        padding: 0.75rem 1.5rem;
    }
}

/* Animation Classes */
.auth-fade-in {
    animation: authFadeIn 0.5s ease-out;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-slide-up {
    animation: authSlideUp 0.3s ease-out;
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auto-hide messages */
.auth-alert-auto-hide {
    animation: authAutoHide 10s ease-in-out;
}

@keyframes authAutoHide {
    0%, 80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
} 