#myModal-sign-in {
    color: #0f172a;
}

#myModal-sign-in .modal-dialog {
    margin: 36px auto;
    max-width: calc(100vw - 24px);
    width: 500px;
}

#myModal-sign-in .dk-auth-content {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(2, 12, 47, .3);
    max-height: calc(100dvh - 72px);
    min-height: 0;
    overflow: hidden;
}

#myModal-sign-in .dk-auth-header {
    background: linear-gradient(135deg, #020c2f 0%, #0c1f63 100%);
    border: 0;
    color: #fff;
    padding: 20px 24px 18px;
}

#myModal-sign-in .dk-auth-header .close {
    color: #fff;
    font-size: 28px;
    margin-top: -4px;
    opacity: .8;
    text-shadow: none;
}

#myModal-sign-in .dk-auth-header .close:hover,
#myModal-sign-in .dk-auth-header .close:focus {
    opacity: 1;
}

#myModal-sign-in .dk-auth-brand {
    font-size: 18px;
    margin-bottom: 12px;
}

#myModal-sign-in .modal-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 34px 4px 0;
}

#myModal-sign-in .dk-auth-subtitle {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

#myModal-sign-in .dk-auth-body {
    background: #f8fafc;
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
    padding: 18px 22px 22px;
}

#myModal-sign-in .dk-auth-tabs {
    background: #e9eef5;
    border: 0;
    border-radius: 11px;
    display: flex;
    gap: 3px;
    margin: 0 0 18px;
    overflow-x: auto;
    padding: 4px;
}

#myModal-sign-in .dk-auth-tabs > li {
    flex: 1 0 auto;
    margin: 0;
}

#myModal-sign-in .dk-auth-tabs > li > a {
    border: 0;
    border-radius: 8px;
    color: #526070;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    padding: 9px 10px;
    text-align: center;
    white-space: nowrap;
}

#myModal-sign-in .dk-auth-tabs > li > a:hover,
#myModal-sign-in .dk-auth-tabs > li > a:focus {
    background: rgba(255, 255, 255, .72);
    color: #0f172a;
}

#myModal-sign-in .dk-auth-tabs > li.active > a,
#myModal-sign-in .dk-auth-tabs > li.active > a:hover,
#myModal-sign-in .dk-auth-tabs > li.active > a:focus {
    background: #fff;
    border: 0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .09);
    color: #15803d;
}

#myModal-sign-in .form-signin {
    max-width: none;
    padding: 0;
}

#myModal-sign-in .form-group {
    margin-bottom: 16px;
}

#myModal-sign-in label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

#myModal-sign-in .form-control {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    box-shadow: none;
    color: #0f172a;
    min-height: 46px;
    padding: 10px 12px;
}

#myModal-sign-in .form-control:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}

#myModal-sign-in .password-wrapper .eye-icon {
    align-items: center;
    display: flex;
    height: 46px;
    justify-content: center;
    right: 2px;
    top: 0;
    width: 42px;
}

#myModal-sign-in .login-btn-form {
    background: #16a34a;
    border: 1px solid #16a34a;
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    min-height: 46px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

#myModal-sign-in .login-btn-form:hover,
#myModal-sign-in .login-btn-form:focus {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
    transform: translateY(-1px);
}

#myModal-sign-in .login-btn-form:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

#myModal-sign-in .login-btn-form.is-loading {
    cursor: wait;
    opacity: .8;
}

#myModal-sign-in .otp-button-spinner,
#myModal-sign-in .otp-inline-spinner {
    animation: otp-spin .75s linear infinite;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: none;
    height: 16px;
    margin-right: 7px;
    vertical-align: -3px;
    width: 16px;
}

#myModal-sign-in .login-btn-form.is-loading .otp-button-spinner,
#myModal-sign-in .otp-inline-spinner {
    display: inline-block;
}

#myModal-sign-in .login-btn-form.is-loading .otp-button-label {
    font-size: 0;
}

#myModal-sign-in .login-btn-form.is-loading .otp-button-label::after {
    content: "Sending code…";
    font-size: 14px;
}

#myModal-sign-in .otp-request-feedback {
    border-radius: 8px;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 8px;
    padding: 8px 10px;
}

#myModal-sign-in .otp-request-feedback.otp-feedback-success {
    background: #ecfdf5;
    color: #166534;
}

#myModal-sign-in .otp-request-feedback.otp-feedback-error {
    background: #fef2f2;
    color: #b91c1c;
}

#myModal-sign-in .otp-code-input {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .25em;
}

#myModal-sign-in .otp-resend-row {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin-top: 8px;
}

#myModal-sign-in .otp-resend-button {
    background: transparent;
    border: 0;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 0 3px 10px;
}

#myModal-sign-in .otp-resend-button:hover,
#myModal-sign-in .otp-resend-button:focus {
    color: #166534;
    text-decoration: underline;
}

#myModal-sign-in .otp-resend-button.is-disabled {
    cursor: wait;
    opacity: .55;
    pointer-events: none;
}

@keyframes otp-spin {
    to {
        transform: rotate(360deg);
    }
}

#myModal-sign-in .form-check {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#myModal-sign-in .form-check label {
    margin: 0;
}

#myModal-sign-in a {
    color: #15803d;
}

#myModal-sign-in .alert {
    border-radius: 9px;
    font-size: 13px;
    padding: 10px 12px;
}

#myModal-sign-in .tab-content {
    min-height: 0;
}

@media (max-width: 600px) {
    .dk-app-shell #myModal-sign-in .modal-dialog {
        margin: 12px auto;
        max-width: calc(100vw - 24px);
        min-height: 0;
        width: 500px;
    }

    .dk-app-shell #myModal-sign-in .dk-auth-content {
        border-radius: 18px;
        max-height: calc(100dvh - 24px);
        min-height: 0;
    }

    .dk-app-shell #myModal-sign-in .dk-auth-body {
        max-height: calc(100dvh - 174px);
        padding: 15px 16px 18px;
    }

    #myModal-sign-in .dk-auth-header {
        padding: 17px 18px 15px;
    }

    #myModal-sign-in .dk-auth-brand {
        margin-bottom: 9px;
    }

    #myModal-sign-in .modal-title {
        font-size: 20px;
    }

    #myModal-sign-in .dk-auth-tabs {
        margin-bottom: 15px;
    }
}
