/* ============================================
   UMOJA WETU - Forgot Password Page Custom Styles
   ============================================ */

/* Forgot Password Hero Section */
.forgot-password-hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1EB53A;
    padding: 100px 0 60px;
}

.forgot-password-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.forgot-password-hero-section .hero-background-flag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/img/Flag-of-Tanzania.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: blur(3px);
    -webkit-filter: blur(3px);
    animation: flagBackgroundShift 30s ease-in-out infinite;
}

@keyframes flagBackgroundShift {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.95;
    }
}

.forgot-password-hero-section .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.forgot-password-hero-section .hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
    animation: titleSlideIn 1s ease-out forwards;
}

.forgot-password-hero-section .hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8), transparent);
    animation: forgotPasswordUnderlineExpand 1s ease-out 0.5s forwards;
    border-radius: 2px;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes forgotPasswordUnderlineExpand {
    0% {
        width: 0;
    }
    100% {
        width: 60%;
    }
}

.forgot-password-hero-section .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 0, 0, 0.4);
    animation: subtitleFadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forgot Password Form Section */
.forgot-password-section {
    background: white;
    padding: 100px 0;
}

.forgot-password-intro {
    padding: 20px;
    padding-top: 0;
}

.forgot-password-intro .section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--primary-color, #1EB53A), var(--secondary-color, #0047AB));
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    animation: tagSlideIn 0.8s ease-out forwards;
    opacity: 0;
}

.forgot-password-intro .section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes tagSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.forgot-password-intro h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--text-dark, #2c3e50);
    position: relative;
    display: inline-block;
    animation: h2SlideIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
    letter-spacing: 1px;
    padding-top: 20px;
}

.forgot-password-intro h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #1EB53A), var(--secondary-color, #0047AB));
    border-radius: 2px;
    animation: underlineGrow 1s ease-out 0.6s forwards;
}

@keyframes h2SlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes underlineGrow {
    0% {
        width: 0;
    }
    100% {
        width: 150px;
    }
}

.forgot-password-intro .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark, #2c3e50);
    font-weight: 500;
}

.forgot-password-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-light, #6c757d);
}

/* Password Info Box */
.password-info-box {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #1EB53A;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: #1EB53A;
    margin-top: 5px;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    color: var(--text-dark, #2c3e50);
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-item p {
    margin: 0;
    color: var(--text-light, #6c757d);
    font-size: 0.9rem;
}

/* Form Card */
.forgot-password-form-wrapper {
    padding: 20px;
}

.form-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1EB53A, #0047AB);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header i {
    font-size: 3rem;
    color: #1EB53A;
    margin-bottom: 15px;
    display: block;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark, #2c3e50);
    margin: 0;
}

.form-header-subtitle {
    margin: 10px 0 0;
    font-size: 0.95rem;
    color: var(--text-light, #6c757d);
    font-weight: 400;
}

/* Password field toggle (inside input) */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #1EB53A;
    outline: none;
}

.password-toggle i {
    font-size: 1.1rem;
}

.password-match-hint.is-match {
    color: #1EB53A;
}

.password-match-hint.is-mismatch {
    color: #856404;
}

/* Requirements checklist (reset password) */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-dark, #2c3e50);
}

.password-requirements li i {
    color: #1EB53A;
    font-size: 0.85rem;
    width: 18px;
    flex-shrink: 0;
}

.form-footer-divider {
    margin: 0 8px;
    color: #ced4da;
}

/* Form Styling */
.forgot-password-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark, #2c3e50);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 8px;
    color: #1EB53A;
    width: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--text-dark, #2c3e50);
}

.form-control:focus {
    outline: none;
    border-color: #1EB53A;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 181, 58, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1EB53A, #0047AB);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(30, 181, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::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;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 181, 58, 0.4);
    background: linear-gradient(135deg, #179830, #003d8f);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    font-size: 0.95rem;
    color: var(--text-light, #6c757d);
}

.login-link {
    color: #1EB53A;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: #0047AB;
    text-decoration: underline;
}

/* Alert Styling */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-danger i {
    color: #dc3545;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-success i {
    color: #28a745;
}

/* Validation Error Styling */
.text-danger {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #dc3545;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forgot-password-hero-section {
        min-height: 40vh;
        padding: 80px 0 40px;
    }
    
    .forgot-password-hero-section .hero-title {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    .forgot-password-hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .forgot-password-intro h2 {
        font-size: 2.2rem;
    }
    
    .forgot-password-intro .section-tag {
        font-size: 0.75rem;
        padding: 6px 18px;
        letter-spacing: 2px;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .section-spacing {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .forgot-password-section .row {
        flex-direction: column-reverse;
    }
    
    .forgot-password-intro {
        margin-top: 30px;
    }

    .form-footer .form-footer-divider {
        display: none;
    }

    .form-footer {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}






