/* Authentication Pages Styles - Login & Register Only */
/* Using auth- prefix to prevent conflicts with global styles */

/* Auth Page Containers */
.auth-login-container, .auth-register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-register-container {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Auth Cards */
.auth-login-card, .auth-register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.auth-login-card:hover, .auth-register-card:hover {
    transform: translateY(-5px);
}

/* Auth Card Headers */
.auth-login-card .card-header, .auth-register-card .card-header {
    border: none;
    padding: 2.5rem 2rem;
    position: relative;
}

.auth-login-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-register-card .card-header {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.auth-login-card .card-header::before, .auth-register-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

/* Auth Brand Logo */
.auth-brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.auth-brand-logo i {
    font-size: 2.5rem;
    color: white;
}

/* Auth Card Body */
.auth-login-card .card-body, .auth-register-card .card-body {
    padding: 2.5rem;
}

/* Auth Form Styling - Only applies within auth cards */
.auth-login-card .form-floating, .auth-register-card .form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-login-card .form-floating > .form-control,
.auth-register-card .form-floating > .form-control {
    height: 3.5rem;
    padding: 1rem 0.75rem 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.auth-login-card .form-floating > .form-control:focus,
.auth-register-card .form-floating > .form-control:focus {
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.auth-login-card .form-floating > .form-control:focus {
    border-color: #667eea;
}

.auth-register-card .form-floating > .form-control:focus {
    border-color: #764ba2;
}

.auth-login-card .form-floating > label,
.auth-register-card .form-floating > label {
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 0.75rem;
    transition: all 0.3s ease;
}

.auth-login-card .form-floating > .form-control:focus ~ label,
.auth-login-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.auth-register-card .form-floating > .form-control:focus ~ label,
.auth-register-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #764ba2;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Auth Input Groups */
.auth-login-card .input-group, .auth-register-card .input-group {
    position: relative;
}

.auth-login-card .input-group-text, .auth-register-card .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 3.5rem;
}

.auth-login-card .input-group-text i, .auth-register-card .input-group-text i {
    font-size: 1rem;
    line-height: 1;
}

.auth-login-card .input-group-text:hover, .auth-register-card .input-group-text:hover {
    background: #e9ecef;
    color: #667eea;
}

/* Auth Alerts */
.auth-login-card .alert, .auth-register-card .alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.auth-login-card .alert-success, .auth-register-card .alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.auth-login-card .alert-danger, .auth-register-card .alert-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

/* Auth Form Checks */
.auth-login-card .form-check-input:checked, .auth-register-card .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.auth-register-card .form-check-input:checked {
    background-color: #764ba2;
    border-color: #764ba2;
}

.auth-register-card .form-check {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.auth-register-card .form-check:hover {
    background: #e9ecef;
}

.auth-register-card .form-check-label {
    color: #495057;
    font-weight: 500;
    cursor: pointer;
}

/* Auth Links */
.auth-login-card .text-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-login-card .text-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-register-card .text-link {
    color: #764ba2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-register-card .text-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Auth Dividers */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Auth Invalid Feedback */
.auth-login-card .invalid-feedback, .auth-register-card .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
}

/* Auth Password Strength - Register only */
.auth-password-strength {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.auth-strength-meter {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.5rem 0;
}

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

.auth-strength-weak .auth-strength-fill {
    width: 33%;
    background: linear-gradient(90deg, #dc3545, #fd7e14);
}

.auth-strength-medium .auth-strength-fill {
    width: 66%;
    background: linear-gradient(90deg, #fd7e14, #ffc107);
}

.auth-strength-strong .auth-strength-fill {
    width: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.auth-strength-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.auth-strength-indicator {
    display: flex;
    align-items: center;
    color: #6c757d;
    transition: color 0.3s ease;
}

.auth-strength-indicator i {
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.auth-strength-indicator.met {
    color: #28a745;
}

.auth-password-match {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.auth-password-match.match {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.auth-password-match.no-match {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Mobile Responsive for Auth Pages */
@media (max-width: 576px) {
    .auth-login-container, .auth-register-container {
        padding: 1rem;
    }

    .auth-login-card .card-header, .auth-register-card .card-header {
        padding: 2rem 1.5rem;
    }

    .auth-login-card .card-body, .auth-register-card .card-body {
        padding: 2rem 1.5rem;
    }

    .auth-brand-logo {
        width: 60px;
        height: 60px;
    }

    .auth-brand-logo i {
        font-size: 2rem;
    }
}
