/* Enhanced Authentication Pages Styles */
/* Modern, professional design for login, signup, and password reset pages */

/* Background and Layout */
.features-list {
    background: linear-gradient(135deg, #34495e 0%, #3298db 100%) !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px !important;
}

.features-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

/* Login Container */
#login {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 50px 40px;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

/* Logo/Brand Area */
#login::before {
    content: '🎬';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Form Header */
.form-signin-heading {
    color: #2d3436;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px !important;
    font-size: 28px;
    letter-spacing: -0.5px;
}

/* Form Styling */
.form-signin {
    margin-top: 20px;
}

.form-signin .form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-signin .form-control {
    height: 50px;
    border: 2px solid #e1e4e8;
    border-radius: 10px;
    font-size: 16px;
    padding: 12px 20px;
    padding-right: 45px; /* Space for icon */
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-signin .form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-signin .form-control::-webkit-input-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #2d3436 !important;
}

/* Field Labels */
.form-signin label.sr-only {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 8px !important;
    display: block !important;
    color: #2d3436 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    clip: auto !important;
    overflow: visible !important;
}

.form-signin .checkbox label {
    display: inline-flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
}

/* Input Icons */
.form-reg {
    position: relative;
}

.form-reg.has-feedback .form-control-feedback {
    position: absolute;
    right: 15px !important;
    top: 40px !important;
    color: #95a5a6;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.form-reg.has-feedback .form-control:focus ~ .form-control-feedback {
    color: #667eea;
}

/* Email icon */
.form-reg:first-child::after {
    content: '\f0e0';
    font-family: 'FontAwesome';
    position: absolute;
    right: 15px;
    top: 40px;
    color: #95a5a6;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-reg:first-child .form-control:focus ~ ::after {
    color: #667eea;
}

/* Checkbox Styling */
.checkbox {
    margin: 20px 0;
    padding: 0;
}

.checkbox label {
    color: #636e72;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
}

.checkbox input[type="checkbox"] {
    margin: 0 8px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Links */
.form-signin a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-signin a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Submit Button */
.form-signin .btn-primary {
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-signin .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.form-signin .btn-primary:hover::before {
    left: 100%;
}

.form-signin .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

/* Alert Messages */
.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #f5576c;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #43e97b;
}

.alert i {
    margin-right: 10px;
}

/* Footer Copyright */
body > p:last-child {
    text-align: center;
    color: white !important;
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.8;
}

body > p:last-child a {
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

body > p:last-child a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Forgot Password Page */
#forgot-password {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 50px 40px;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

#forgot-password h2 {
    color: #2d3436;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px !important;
    font-size: 28px;
}

#forgot-password p {
    color: #636e72;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

/* Reset Password Page */
#reset-password {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 50px 40px;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

/* Sign Up Page */
#signup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 50px 40px;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

#signup h2 {
    color: #2d3436;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px !important;
    font-size: 28px;
}

/* Loading State */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: #e1e4e8;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

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

.password-strength-bar.weak {
    width: 33%;
    background: #f5576c;
}

.password-strength-bar.medium {
    width: 66%;
    background: #feca57;
}

.password-strength-bar.strong {
    width: 100%;
    background: #43e97b;
}

/* Responsive Design */
@media (max-width: 768px) {
    #login, #forgot-password, #reset-password, #signup {
        padding: 40px 30px;
        margin: 20px;
        border-radius: 15px;
    }
    
    .form-signin-heading {
        font-size: 24px;
    }
    
    .form-signin .form-control,
    .form-signin .btn-primary {
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #login, #forgot-password, #reset-password, #signup {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .features-list {
        padding: 20px 10px !important;
    }
}

/* Social Login Buttons (if needed in future) */
.social-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e4e8;
}

.social-login-title {
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
}

.social-login-title::before,
.social-login-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e1e4e8;
}

.social-login-title::before {
    left: 0;
}

.social-login-title::after {
    right: 0;
}

.btn-social {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e4e8;
    border-radius: 10px;
    background: white;
    color: #2d3436;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.btn-social i {
    margin-right: 10px;
    font-size: 18px;
}

/* Input Field Animations */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-control:placeholder-shown {
    background: #f8f9fa;
}

.form-control:not(:placeholder-shown) {
    background: white;
    border-color: #667eea;
}

/* Floating Labels Effect (optional enhancement) */
.floating-label {
    position: relative;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    background: white;
    padding: 0 5px;
    color: #667eea;
}

/* Remember Me Switch Style - Enhanced Checkbox */
.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 20px;
    background: #e1e4e8;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 10px 0 0 !important;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.checkbox input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.checkbox input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.checkbox input[type="checkbox"]:checked::before {
    left: 22px;
}

/* Success Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.success-checkmark circle {
    stroke: #43e97b;
    stroke-width: 2;
    fill: none;
    animation: checkmark 0.6s ease-out;
}

.success-checkmark path {
    stroke: #43e97b;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark 0.6s ease-out 0.3s forwards;
}