﻿body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #edf5ff;
}

.forgot-page {
    min-height: 100vh;
    display: flex;
}

.forgot-left {
    width: 32%;
    background: linear-gradient(180deg,#0a63ff,#2993ff);
    color: white;
    padding: 36px;
    display: flex;
    align-items: center;
}

.forgot-brand h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

    .forgot-brand h1 span {
        color: #8de2ff;
    }

.forgot-line {
    width: 50px;
    height: 3px;
    background: #8de2ff;
    border-radius: 20px;
    margin: 14px 0;
}

.forgot-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.forgot-logo {
    width: 130px;
    margin-bottom: 24px;
}

.forgot-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.forgot-card {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
}

.forgot-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #edf5ff;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .forgot-icon i {
        color: #0a63ff;
        font-size: 26px;
    }

.forgot-card h2 {
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
    color: #0b2152;
}

.forgot-subtitle {
    text-align: center;
    color: #68768f;
    margin-bottom: 16px;
    font-size: 13px;
}

.forgot-label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.forgot-input {
    border: 2px solid #dbe8ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

    .forgot-input i {
        width: 42px;
        text-align: center;
        color: #0a63ff;
        font-size: 14px;
    }

    .forgot-input input {
        height: 42px;
        font-size: 13px;
    }

.forgot-btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg,#0a63ff,#0050e6);
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.forgot-divider {
    text-align: center;
    margin: 8px 0;
    color: #7f8aa3;
    font-size: 13px;
}

.back-login {
    display: flex;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #0a63ff;
    font-weight: 600;
    font-size: 13px;
}

.security-box {
    margin-top: 10px;
    padding: 14px;
    background: #f4f8ff;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.security-icon {
    width: 36px;
    height: 36px;
    background: #e8f1ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .security-icon i {
        color: #0a63ff;
        font-size: 14px;
    }

.security-box p {
    margin: 0;
    color: #6b7485;
    font-size: 12px;
}

@media(max-width:991px) {

    .forgot-page {
        flex-direction: column;
    }

    .forgot-left {
        width: 100%;
        text-align: center;
        padding: 24px 20px;
    }

    .forgot-brand h1 {
        font-size: 24px;
    }

    .forgot-brand p {
        font-size: 13px;
    }

    .forgot-line {
        margin: 12px auto;
    }

    .forgot-right {
        padding: 16px;
    }

    .forgot-card {
        padding: 22px 18px;
    }

        .forgot-card h2 {
            font-size: 18px;
        }
}


.alert-success {
    border-radius: 14px;
    border: none;
    background: #ecfdf3;
    color: #15803d;
    padding: 15px 20px;
}

.alert-danger {
    border-radius: 14px;
    border: none;
    background: #fff1f2;
    color: #dc2626;
    padding: 15px 20px;
}


.pw-meter {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.pw-meter-fill {
    height: 100%;
    width: 0%;
    transition: width .2s ease;
    background: #e74c3c;
}

/* tooltip style: hidden by default, shown when user types */
.pw-suggestions-wrapper {
    position: relative;
}

.pw-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    padding: .5rem;
    font-size: .9rem;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    width: 280px;
    z-index: 1200;
}

    .pw-suggestions li {
        list-style: none;
        margin: 4px 0;
    }

    .pw-suggestions .ok {
        color: #28a745;
    }

    .pw-suggestions .bad {
        color: #6c757d;
    }

.pw-match {
    font-size: .95rem;
    margin-top: .5rem;
}

.text-weak {
    color: #e74c3c;
}

.text-medium {
    color: #f39c12;
}

.text-strong {
    color: #28a745;
}

.forgot-btn[disabled] {
    opacity: .6;
    pointer-events: none;
}