/* =================================================
   CSS CHO FORM QUÊN MẬT KHẨU GIAO DIỆN MỚI
================================================= */

.lostpw-container {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
}

.lostpw-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    box-sizing: border-box;
}

/* Header */
.lostpw-header {
    text-align: center;
    margin-bottom: 30px;
}

.lostpw-icon {
    width: 68px;
    height: 68px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.lostpw-icon svg {
    width: 32px;
    height: 32px;
}

.lostpw-header h2 {
    margin: 0 0 12px;
    font-size: 26px;
    color: #0f172a;
    font-weight: 800;
}

.lostpw-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* Messages (Lỗi / Thành công) */
.lostpw-msg {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14.5px;
    line-height: 1.5;
}

.lostpw-msg .msg-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
}

.lostpw-msg .msg-icon svg {
    width: 100%;
    height: 100%;
}

.lostpw-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
}

.lostpw-msg.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
}

/* Form Input */
.lostpw-form-group {
    margin-bottom: 25px;
}

.lostpw-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #334155;
    font-size: 14px;
}

.lostpw-input-wrapper {
    position: relative;
}

/* Icon bên trong ô nhập liệu */
.lostpw-input-wrapper .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.3s;
}

.lostpw-input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 50px !important; /* Tạo khoảng trống cho icon */
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    font-size: 15px !important;
    color: #0f172a !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    height: auto !important;
}

.lostpw-input-wrapper input:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

/* Đổi màu icon khi click vào ô nhập */
.lostpw-input-wrapper input:focus ~ .input-icon {
    color: #3b82f6;
}

/* Button */
.lostpw-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.lostpw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.lostpw-btn:active {
    transform: translateY(0);
}

/* Footer (Nút quay lại) */
.lostpw-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.lostpw-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 20px;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lostpw-back-link svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.lostpw-back-link:hover {
    color: #1e293b;
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}