/* Login Page Modern Styles */

/* Override forms-consistent.css for modern design */
.login-page.modern-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

/* Form Info Section - Consistent with Contact Page "Get in Touch" */
.form-info-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Use same class as Contact page for consistency */
.form-info-section .section-title-modern,
.form-info-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Use same class as Contact page for description */
.form-info-section .section-description,
.form-info-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.form-info-description strong {
    color: #2c3e50;
    font-weight: 600;
}

.form-info-description u {
    text-decoration: underline;
    text-decoration-color: #667eea;
}

.form-info-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-info-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login Form Redesigned */
.login-form-wrapper.redesigned {
    background: #ffffff;
    padding: 50px 45px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.08);
    position: relative;
    overflow: hidden;
}

.login-form-wrapper.redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-form-redesigned {
    margin-top: 0;
}

/* Form Field Wrapper */
.form-field-wrapper {
    margin-bottom: 28px;
    position: relative;
}

/* Form Field */
.form-field {
    position: relative;
}

/* Form Input */
.form-input-redesigned {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    background: #f8f9fa;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

.form-input-redesigned:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
    transform: translateY(-1px);
}

.form-input-redesigned:focus + .form-label-redesigned,
.form-input-redesigned:not(:placeholder-shown) + .form-label-redesigned,
.form-input-redesigned:valid + .form-label-redesigned {
    transform: translateY(-28px) translateX(-8px) scale(0.85);
    color: #667eea;
    font-weight: 600;
}

.form-input-redesigned::placeholder {
    color: transparent;
}

/* Form Label */
.form-label-redesigned {
    position: absolute;
    left: 20px;
    top: 18px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, #ffffff 50%, #f8f9fa 50%);
    padding: 0 6px;
    transform-origin: left top;
}

.form-field:focus-within .form-label-redesigned {
    color: #667eea;
}

.required-asterisk {
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}

/* Input Icon */
.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.form-field:focus-within .input-icon {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-icon {
    cursor: pointer;
    pointer-events: all;
}

.password-toggle-icon:hover {
    color: #667eea;
}

/* Remember Me & Forgot Password Row */
.forgot-password-wrapper {
    margin-bottom: 24px;
}

.remember-me-checkbox-redesigned {
    cursor: pointer;
    user-select: none;
}

.remember-me-input-redesigned {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.remember-me-label-redesigned {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.cursor-pointer {
    cursor: pointer;
}

.forgot-password-link-redesigned {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password-link-redesigned:hover {
    color: #764ba2;
    text-decoration: underline;
}

.forgot-password-link-redesigned i {
    font-size: 12px;
}

/* Validation Message */
.validation-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
    padding-left: 4px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit Button Redesigned */
.form-submit-wrapper {
    margin-top: 10px;
    margin-bottom: 24px;
    text-align: center;
}

.btn-submit-redesigned {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    overflow: hidden;
    width: 100%;
    min-width: 200px;
}

.btn-submit-redesigned::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit-redesigned:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit-redesigned:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

.btn-submit-redesigned:active {
    transform: translateY(-2px);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-submit-redesigned:hover .btn-icon {
    transform: translateX(4px);
}

.btn-submit-redesigned:active .btn-icon {
    transform: translateX(6px);
}

/* Form Footer */
.form-footer-redesigned {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e8ecf0;
}

.form-footer-redesigned p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.register-link-redesigned {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link-redesigned:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alert Messages - Modern Styling */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.alert-danger i {
    color: #ef4444;
}

.alert-success i {
    color: #10b981;
}

/* Responsive Design */
@media (max-width: 991px) {
    .form-info-section {
        margin-bottom: 40px;
    }

    .form-info-section .section-title-modern,
    .form-info-title {
        font-size: 36px;
    }

    .login-form-wrapper.redesigned {
        padding: 40px 35px;
    }
}

@media (max-width: 767px) {
    .login-page {
        padding: 50px 0;
    }

    .form-info-section .section-title-modern,
    .form-info-title {
        font-size: 28px;
    }

    .login-form-wrapper.redesigned {
        padding: 30px 25px;
    }

    .form-input-redesigned {
        padding: 16px 45px 16px 18px;
        font-size: 15px;
    }

    .form-label-redesigned {
        font-size: 14px;
        top: 16px;
    }

    .input-icon {
        font-size: 15px;
        right: 16px;
    }

    .btn-submit-redesigned {
        width: 100%;
        min-width: auto;
    }
}

