@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #eef1f5;
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
}

.reset-box {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(30, 48, 71, 0.10);
}

.card-header {
    background: #1e3047;
    padding: 28px 36px 24px;
}

.card-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.card-header .brand-icon {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header .brand-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.card-header .brand-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.card-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.card-header .subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
    min-height: 18px;
}


.step-bar {
    display: flex;
    gap: 6px;
    margin-top: 20px;
}

.step-dot {
    height: 3px;
    border-radius: 2px;
    flex: 1;
    background: rgba(255,255,255,0.18);
    transition: background 0.35s;
}

.step-dot.active {
    background: rgba(255,255,255,0.9);
}

.step-dot.done {
    background: rgba(255,255,255,0.45);
}

.card-body {
    padding: 32px 36px;
}


.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #7a8898;
    padding: 0;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-btn:hover { color: #1e3047; }

.back-btn svg {
    width: 14px;
    height: 14px;
}


.field-group {
    margin-bottom: 16px;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

.field-group input[type="email"],
.field-group input[type="text"],
.field-group input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    background: #ffffff;
    color: #1e3047;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field-group input:focus {
    border-color: #1e3047;
    box-shadow: 0 0 0 3px rgba(30, 48, 71, 0.08);
}

#otpInput {
    width: 100%;
    padding: 16px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 8px; /* cách chữ giống OTP */
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: 0.3s;
}

#otpInput:focus {
    border-color: #243B55;
    box-shadow: 0 0 0 2px rgba(36, 59, 85, 0.2);
    outline: none;
}

.pw-wrap {
    position: relative;
}

.pw-wrap input {
    padding-right: 44px !important;
}

.pw-wrap .eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9aa5b4;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pw-wrap .eye-btn:hover { color: #1e3047; }

.pw-wrap .eye-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pw-strength {
    height: 3px;
    border-radius: 2px;
    background: #eef1f5;
    margin-top: 8px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
}

.hint {
    font-size: 12px;
    color: #9aa5b4;
    margin-top: 5px;
}


.error-message {
    font-size: 12px;
    color: #c0392b;
    margin-top: 5px;
    display: none;
}


.otp-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.otp-wrap input {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding: 14px 4px;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    background: #ffffff;
    color: #1e3047;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-wrap input:focus {
    border-color: #1e3047;
    box-shadow: 0 0 0 3px rgba(30, 48, 71, 0.08);
}

.resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.timer-text {
    font-size: 13px;
    color: #9aa5b4;
}

.resend-btn {
    font-size: 13px;
    font-weight: 500;
    color: #1e3047;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s;
}
.resend-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.resend-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.primary-btn {
    width: 100%;
    padding: 13px;
    background: #1e3047;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}

.primary-btn:hover { background: #273f5e; }
.primary-btn:active { transform: scale(0.99); }


.success-wrap {
    text-align: center;
    padding: 16px 0 8px;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: #eaf3de;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.success-icon svg {
    width: 26px;
    height: 26px;
    stroke: #3B6D11;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3047;
    margin-bottom: 8px;
}

.success-sub {
    font-size: 14px;
    color: #7a8898;
    line-height: 1.65;
}


.screen { display: none; }
.screen.active { display: block; }