/**
 * Authentication Pages Styles
 * Covers: login, register, verify, reset password pages
 */

/* Base Styles */
body {
    background: linear-gradient(180deg, #1a1a1a 0%, #212121 50%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    padding: 20px 0;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

/* Login Container */
.login-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Register Container */
.register-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo Section - Matching Sidebar Style */
.logo-section {
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-section .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.logo-section .logo-icon i {
    font-size: 2rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.logo-section:hover .logo-icon {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
}

.logo-section:hover .logo-icon i {
    transform: scale(1.1);
}

.logo-section .logo-text {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-align: left;
}

/* Welcome Text */
.welcome-text h4 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.75rem;
}

.welcome-text p {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 35px;
    font-weight: 500;
}

/* Form Labels */
.form-label {
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Form Controls */
.form-control {
    border-radius: 12px;
    border: 2px solid #e1e5e9;
    padding: 15px 20px;
    font-size: 15px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
    font-size: 14px;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.input-group-text {
    background: transparent;
    border: 2px solid #e1e5e9;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* Spacing */
.mb-3 {
    margin-bottom: 20px;
}

.mb-4 {
    margin-bottom: 25px;
}

/* Floating Label Effect */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    height: 56px;
    padding: 20px 20px 8px 20px;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 20px 20px;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
}

/* Enhanced Focus Effects */
.form-floating.focused .form-control {
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Validation States */
.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.is-valid {
    border-color: #28a745;
    background-color: #f0fff4;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 15px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
    color: #ffffff;
}

.btn-primary:focus {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 8px 30px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

/* Links */
.forgot-password {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.forgot-password:hover {
    color: #667eea;
    text-decoration: underline;
}

.signup-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.signup-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.login-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Footer Text */
.footer-text {
    color: #6c757d;
    font-size: 12px;
    margin-top: 30px;
    font-weight: 500;
}

.footer-text a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Register Page Specific */
.register-container .welcome-text p {
    margin-bottom: 25px;
}

.register-container .form-control {
    padding: 12px 15px;
    font-size: 14px;
}

.register-container .btn-primary {
    padding: 12px;
}

.register-container .footer-text {
    margin-top: 25px;
}

.row .col-md-6 {
    padding: 0 5px;
}

/* Verify Container */
.verify-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Reset Password Container */
.reset-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Avatar Styles for Verify Page */
.avatar-lg {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.avatar-title {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
}

.avatar-title i {
    color: #667eea;
    font-size: 32px;
}

/* Verify Code Input */
.verify-container .form-control {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    padding: 15px;
}

/* Resend Link */
.resend-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.resend-link:hover {
    color: #764ba2;
}

/* Back to Login Link */
.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #764ba2;
}

/* Success/Error Icons */
.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    background: rgba(16, 185, 129, 0.1);
}

.success-icon i {
    color: #10b981;
    font-size: 40px;
}

.error-icon {
    background: rgba(239, 68, 68, 0.1);
}

.error-icon i {
    color: #ef4444;
    font-size: 40px;
}

/* Alert Styles */
.alert-info {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

/* Additional Button Styles */
.btn-info {
    background: #6c757d;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Digit Input for Verify Code */
.digit-input {
    width: 60px;
    height: 60px;
    margin: 0 5px;
}

/* Text Color for Form Sections */
.text-center p {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-container,
    .register-container,
    .verify-container,
    .reset-container {
        padding: 35px 25px;
        max-width: 100%;
        margin: 0 15px;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.75rem;
    }

    .logo-section .logo-icon {
        width: 55px;
        height: 55px;
    }

    .logo-section .logo-icon i {
        font-size: 1.75rem;
    }

    .logo-section .logo-text {
        font-size: 1.35rem;
        text-align: center;
    }

    .welcome-text h4 {
        font-size: 1.4rem;
    }

    .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 12px;
        font-size: 15px;
    }

    .row .col-md-6 {
        padding: 0;
    }

    .avatar-lg {
        width: 60px;
        height: 60px;
    }

    .avatar-title i {
        font-size: 24px;
    }
}

