.otp-login-modal .modal-dialog {
    width: 420px;
    max-width: calc(100% - 30px);
}

.otp-login-modal .modal-content {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-top: 4px solid #ed1c24;
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(48, 55, 65, 0.2);
}

.otp-login-modal .modal-header {
    position: relative;
    min-height: 52px;
    padding: 0 50px 0 20px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #ececec;
    border-radius: 3px 3px 0 0;
}

.otp-login-modal .modal-title {
    color: #303741;
    font-size: 18px;
    font-weight: bold;
    line-height: 52px;
}

.otp-login-modal .btn-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    opacity: 1;
}

.otp-login-modal .btn-close:before {
    content: '\00d7';
    display: block;
    color: #69727e;
    font-size: 28px;
    font-weight: normal;
    line-height: 34px;
    text-align: center;
}

.otp-login-modal .modal-body {
    background: #fff;
    padding: 28px 30px 20px;
}

.otp-login-modal [hidden] {
    display: none !important;
}

.otp-login-modal .otp-guide {
    margin: 0 0 24px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.otp-login-modal label {
    display: block;
    margin-bottom: 8px;
    color: #303741;
    font-size: 13px;
    font-weight: bold;
}

.otp-login-modal .otp-method-group {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.otp-login-modal .otp-method-group legend {
    display: block;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    color: #303741;
    font-size: 13px;
    font-weight: bold;
}

.otp-login-modal .otp-method-options {
    display: flex;
    gap: 10px;
}

.otp-login-modal .otp-method-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.otp-login-modal .otp-method-button {
    flex: 1;
    min-height: 54px;
    margin: 0;
    padding: 16px 10px;
    box-sizing: border-box;
    border: 1px solid #d5d8dc;
    background: #fafafa;
    color: #303741;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.otp-login-modal .otp-method-button:hover {
    border-color: #ed1c24;
    background: #fff;
}

.otp-login-modal .otp-method-button strong,
.otp-login-modal .otp-method-button span {
    display: block;
}

.otp-login-modal .otp-method-button strong {
    margin-bottom: 0;
    color: #303741;
    font-size: 15px;
}

.otp-login-modal .otp-method-button span {
    color: #777;
    font-size: 11px;
    font-weight: normal;
}

.otp-login-modal .otp-method-radio:checked + .otp-method-button {
    border-color: #ed1c24;
    background: #fff7f7;
    box-shadow: inset 0 0 0 1px #ed1c24;
}

.otp-login-modal .otp-method-radio:checked + .otp-method-button strong {
    color: #ed1c24;
}

.otp-login-modal .otp-method-radio:focus + .otp-method-button {
    outline: 2px solid #303741;
    outline-offset: 2px;
}

.otp-login-modal .otp-method-radio:disabled + .otp-method-button {
    border-color: #e1e1e1;
    background: #f3f3f3;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
}

.otp-login-modal .otp-method-radio:disabled + .otp-method-button strong,
.otp-login-modal .otp-method-radio:disabled + .otp-method-button span {
    color: #aaa;
}

.otp-login-modal .otp-step-actions {
    text-align: center;
}

.otp-login-modal .otp-send-button {
    width: 100%;
    height: 44px;
    margin: 0;
    font-size: 14px;
}

.otp-login-modal .otp-send-result {
    margin: 0 0 22px;
    padding: 13px 15px;
    background: #f7f7f7;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.otp-login-modal .otp-send-result strong {
    color: #ed1c24;
}

.otp-login-modal .otp-code-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.otp-login-modal #otpCode {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 44px;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-size: 18px;
    letter-spacing: 8px;
    text-align: center;
}

.otp-login-modal .otp-timer {
    flex: 0 0 52px;
    color: #ed1c24;
    font-size: 16px;
    font-weight: bold;
    text-align: right;
}

.otp-login-modal .otp-code-row .otp-resend-button {
    flex: 0 0 76px;
    width: 76px;
    min-width: 76px;
    height: 44px;
    margin: 0;
    padding: 0 10px;
    font-size: 13px;
}

.otp-login-modal #otpCode:disabled {
    background: #f1f1f1;
    color: #999;
}

.otp-login-modal .otp-notice {
    margin: 10px 0 0;
    color: #777;
    font-size: 12px;
}

.password-change-modal .password-change-field {
    margin-bottom: 16px;
}

.password-change-modal .password-change-field:last-child {
    margin-bottom: 0;
}

.password-change-modal .password-change-field input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 0;
    background: #fff;
    color: #333;
    font-size: 14px;
}

.password-change-modal .password-change-field input:focus {
    border-color: #ed1c24;
    outline: 1px solid #ed1c24;
}

.password-change-modal .password-policy-guide {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #e3e3e3;
    border-left: 3px solid #ed1c24;
    background: #f7f7f7;
    color: #555;
    font-size: 12px;
    line-height: 1.6;
}

.password-change-modal .password-policy-guide strong {
    display: block;
    margin-bottom: 6px;
    color: #303741;
    font-size: 13px;
}

.password-change-modal .password-policy-guide ul {
    margin: 0;
    padding-left: 17px;
}

.password-change-modal .password-policy-guide li {
    margin: 2px 0;
}

.otp-login-modal .modal-footer {
    background: #fff;
    justify-content: center;
    padding: 15px 20px 20px;
    border: 0;
    border-top: 1px solid #f0f0f0;
}

.otp-login-modal .otp-btn {
    min-width: 90px;
    height: 38px;
    margin: 0 3px;
    border: 0;
    color: #fff;
    font-weight: bold;
}

.otp-login-modal .otp-btn.secondary {
    background: #69727e;
}

.otp-login-modal .otp-btn.primary {
    background: #ed1c24;
}

.otp-login-modal .otp-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
}

body.login .modal-backdrop {
    background-color: #000;
}

body.login .modal-backdrop.show {
    opacity: 0.65;
}
