.dr-auth-modal .modal-dialog {
    max-width: 1060px;
    transform: translateY(22px) scale(0.985);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
}

.dr-auth-modal.show .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.dr-auth-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f6;
    box-shadow: 0 26px 72px rgba(16, 31, 63, 0.32);
}

.dr-auth-close {
    position: absolute;
    top: clamp(8px, 1.5vw, 18px);
    right: clamp(8px, 1.5vw, 18px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    background-image: none !important;
    border: 0;
    border-radius: 0;
    width: 36px;
    height: 36px;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.dr-auth-close::before {
    content: "\00D7";
    color: #111111;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
}

.dr-auth-close:hover {
    transform: scale(1.05);
    opacity: 0.9 !important;
}

.dr-auth-close:focus {
    outline: none;
    box-shadow: none;
}

.dr-auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 46%) 1fr;
    min-height: 620px;
}

.dr-auth-media {
    position: relative;
    overflow: hidden;
}

.dr-auth-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.14) 100%);
}

.dr-auth-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

.dr-auth-modal.show .dr-auth-media img {
    transform: scale(1);
}

.dr-auth-body {
    padding: 48px 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "FuturaStd-Book", sans-serif;
    animation: drAuthContentIn 0.42s ease both;
    animation-delay: 0.06s;
}

@keyframes drAuthContentIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dr-auth-title {
    font-size: clamp(30px, 2.2vw, 44px);
    line-height: 1.08;
    margin-bottom: 14px;
    color: #101727;
    font-family: "PlayfairDisplay-Regular", serif;
}

.dr-auth-subtitle {
    color: #3f4860;
    margin-bottom: 22px;
    font-size: 21px;
    line-height: 1.35;
}

.dr-auth-label {
    display: block;
    font-size: 15px;
    color: #1a2236;
    margin-bottom: 7px;
}

.dr-auth-input,
.dr-auth-select {
    border: 1px solid #d7dbe4;
    border-radius: 14px;
    min-height: 54px;
    padding: 12px 16px;
    box-shadow: none;
    font-size: 16px;
    color: #1e2330;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dr-auth-input:focus,
.dr-auth-select:focus {
    border-color: #8ca0c8;
    box-shadow: 0 0 0 3px rgba(47, 74, 122, 0.14);
}

.dr-auth-select {
    max-width: 148px;
    border-radius: 14px 0 0 14px;
    border-right: 0;
}

.dr-auth-phone-group .dr-auth-input {
    border-radius: 0 14px 14px 0;
}

.dr-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 4px;
    color: #2e3650;
    font-size: 14px;
    line-height: 1.45;
}

.dr-auth-check input {
    margin-top: 3px;
}

.dr-auth-check a {
    text-decoration: underline;
    color: #1d2f56;
}

.dr-auth-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    border: 0;
    background: #2f4a7a;
    color: #fff;
    font-size: 24px;
    font-family: "PlayfairDisplay-Regular", serif;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dr-auth-btn:hover {
    background: #21385e;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(33, 56, 94, 0.24);
}

.dr-auth-btn:active {
    transform: translateY(0);
}

.dr-auth-foot {
    text-align: center;
    margin-top: 16px;
    color: #232c44;
    font-size: 16px;
}

.dr-auth-foot a {
    color: #233b69;
    text-decoration: underline;
}

.dr-field-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #c62828;
    font-size: 12px;
    line-height: 1.2;
}

.dr-auth-modal .otp-form-div {
    display: none;
}

.dr-otp-card {
    border: 1px solid #dde2ec;
    border-radius: 14px;
    background: #fff;
    padding: 20px;
}

.dr-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    gap: 8px;
}

.dr-otp-grid .otp-input {
    width: 100%;
    height: 50px;
    margin: 0;
    border-radius: 10px;
    border: 1px solid #cfd6e5;
    font-size: 22px;
}

.dr-auth-resend {
    text-align: right;
    margin-top: 12px;
}

.dr-auth-resend a {
    color: #243d6b;
    text-decoration: underline;
}

.dr-auth-resend a.disabled {
    opacity: 0.45;
    pointer-events: none;
    text-decoration: none;
}

#resendOtpTimer {
    margin-left: 8px;
    font-size: 13px;
    color: #6a7288;
}

.dr-auth-edit-mobile {
    margin-top: 8px;
}

.dr-auth-edit-mobile a {
    color: #243d6b;
    text-decoration: underline;
    font-size: 14px;
}

@media (max-width: 1199.98px) {
    .dr-auth-modal .modal-dialog {
        max-width: 920px;
    }

    .dr-auth-shell {
        grid-template-columns: minmax(300px, 43%) 1fr;
        min-height: 580px;
    }

    .dr-auth-body {
        padding: 36px 30px 28px;
    }

    .dr-auth-title {
        font-size: clamp(28px, 2.6vw, 38px);
    }
}

@media (max-width: 991.98px) {
    .dr-auth-modal .modal-dialog {
        max-width: calc(100% - 16px);
        margin: 8px auto;
    }

    .dr-auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dr-auth-media {
        max-height: 260px;
    }

    .dr-auth-body {
        padding: 26px 20px 22px;
    }

    .dr-auth-title {
        font-size: 34px;
    }

    .dr-auth-subtitle {
        font-size: 19px;
    }

    .dr-auth-btn {
        font-size: 21px;
    }

    .dr-auth-shell {
        gap: 0;
    }
}

@media (max-width: 767.98px) {
    .dr-auth-modal .modal-content {
        border-radius: 12px;
    }

    .dr-auth-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .dr-auth-close::before {
        font-size: 28px;
    }

    .dr-auth-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .dr-auth-subtitle {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .dr-auth-label {
        font-size: 14px;
    }

    .dr-auth-input,
    .dr-auth-select {
        min-height: 48px;
        font-size: 15px;
    }

    .dr-auth-select {
        max-width: 116px;
    }

    .dr-auth-check {
        font-size: 13px;
        line-height: 1.35;
    }

    .dr-otp-grid {
        gap: 6px;
    }

    .dr-otp-grid .otp-input {
        height: 46px;
        font-size: 18px;
    }
}

@media (max-width: 479.98px) {
    .dr-auth-modal .modal-dialog {
        max-width: calc(100% - 8px);
        margin: 4px auto;
    }

    .dr-auth-media {
        max-height: 210px;
    }

    .dr-auth-body {
        padding: 20px 14px 16px;
    }

    .dr-auth-btn {
        min-height: 46px;
        font-size: 18px;
    }

    .dr-auth-foot {
        font-size: 14px;
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dr-auth-modal .modal-dialog,
    .dr-auth-media img,
    .dr-auth-body,
    .dr-auth-btn,
    .dr-auth-input,
    .dr-auth-select {
        transition: none !important;
        animation: none !important;
    }
}