.forgot-form {
    /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); */
    background-color: #141922;
}
.forgot {
    width: 100%;
    background-color: #141922;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding-bottom: 200px;
    padding-top: 50px;
}

.forgot-form {
    position: relative;
    padding: 18px 22px 0 22px;
    width: 100%;
    max-width: 354px;
    color: #ffffff;
    box-sizing: border-box;
}

.forgot-form h1 {
    font-size: 30px !important;
    margin: 0 0 30px !important;
    color: #ffffff !important;
    font-weight: bold;
}

.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 14px;
}

.input-wrapper > i {
    position: absolute;
    left: 14px;
    top: 9px;
    color: #eae8e8;
    font-size: 16px;
    pointer-events: none;
    line-height: 20px;
}

input[type="text"] {
    color: #ccc;
}

input[type="text"]:focus {
    color: #ccc;
}

.error-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #f87171;
    color: #f87171;
    background-color: transparent;
    font-size: 5px;
    text-align: center;
    line-height: 18px;
    display: none;
}

.error-icon i {
    font-size: 8px;
}

.input-wrapper.error .error-icon {
    display: block;
}

.input-wrapper.error .input-primary {
    border: 1px solid #f87171 !important;
}

.input-primary {
    width: 100%;
    height: 44px;
    padding: 12px 14px 12px 40px !important;
    background-color: #1f2635 !important;
    color: #ccc;
    border: none !important;
    border-radius: 0.25rem !important;
    transition: border 0.2s ease;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
}

.input-primary::placeholder {
    color: #626262 !important;
    font-size: 14px;
}

.input-primary:focus {
    border: 1px solid orange !important;
    outline: none !important;
}

.input-primary.error {
    border: 1px solid #f87171 !important;
}

.input-primary.valid {
    border: none !important;
}

.text-error {
    color: #f87171;
    font-size: 12px;
    margin-top: 4px;
}

/* end input */
.btn-forgot,
.btn-cancel {
    width: 100%;
    padding: 10px 0;
    background-color: var(--primary-color);
    border: none;
    color: #212529;
    font-weight: 600;
    font-size: 16px;
    border-radius: 0.25rem !important;
    text-align: center;
    margin-top: 12px;
}

.btn-cancel {
    color: var(--primary-color);
    background-color: #141922;
    border: 1px solid var(--primary-color);
}

.btn-forgot:hover {
    background-color: #ffbb43;
}

.btn-cancel:hover {
    background-color: var(--primary-color);
    color: #212529;
}

.btn-cancel:focus,
.btn-forgot:focus {
    outline: none;
}

.modal-forgot-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-bottom: 8px !important;
}
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: #aaa;
    font-size: 16px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #555;
}

.divider:not(:empty)::before {
    margin-right: 10px;
}

.divider:not(:empty)::after {
    margin-left: 10px;
}

@media only screen and (max-width: 600px) {
    .forgot-form {
        padding: 30px 20px;
    }
}

@media only screen and (max-width: 576px) {
    .forgot-form {
        width: 100%;
        max-width: 95%;
    }

    /* Đảm bảo input full width */
    .input-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .input-primary {
        width: 100%;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 768px) {
    .forgot-form {
        padding: 18px 15px 0;
        box-sizing: border-box;
    }

    .forgot-form h1 {
        font-size: 20px !important;
        margin: 0 0 20px !important;
    }
}
