/* Authentication Pages Styling */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #06d6a0;
    --warning-color: #ffbe0b;
    --danger-color: #ef476f;
    --text-color: #333;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Auth Header */
.auth-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
}

.auth-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Auth Form */
.auth-form {
    padding: 0 2rem 2.5rem;
}

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

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(58, 134, 255, 0.25);
}

.input-group-text {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px !important;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0 !important;
}

.input-group .toggle-password {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.input-group .toggle-password:hover {
    background-color: #e9ecef;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

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

.password-requirements {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.password-requirements span {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.password-requirements i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

.valid {
    color: var(--success-color);
}

.valid i {
    color: var(--success-color);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    
    .auth-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .auth-form {
        padding: 0 1.5rem 1.5rem;
    }
    
    .password-requirements span {
        display: block;
        margin-right: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.5s ease-out;
}

/* Form Validation */
.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger-color);
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
}

/* Password Strength Meter */
#passwordStrengthBar {
    transition: width 0.3s ease;
}

.strength-weak {
    background-color: var(--danger-color);
}

.strength-medium {
    background-color: var(--warning-color);
}

.strength-strong {
    background-color: var(--success-color);
}
