/* Shared login/register presentation; authentication remains in common.js. */
.dx-auth-modal {
    padding: 24px 16px;
    background: rgba(0, 0, 0, .38);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #eeeef2;
}

.dx-auth-modal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.dx-auth-modal.dx-modal .modal-dialog {
    position: relative;
    top: 0 !important;
    width: 420px !important;
    max-width: 100%;
    margin: auto !important;
    background: transparent;
    transform: none !important;
}

.dx-auth-modal .modal-content {
    position: relative;
    overflow: auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: #131318;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}

.dx-auth-modal .modal-body {
    max-height: none;
    padding: 30px;
    overflow: visible;
}

.dx-auth__close {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #777783;
    cursor: pointer;
}

.dx-auth__close:hover {
    background: #202029;
    color: #fff;
}

.dx-auth__tabs {
    display: flex;
    gap: 6px;
    margin: 0 30px 24px 0;
}

.dx-auth__tab {
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #777783;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}

.dx-auth__tab.is-active {
    background: #202029;
    color: #fff;
}

.dx-auth__tab:hover {
    color: #fff;
}

.dx-auth__field {
    margin-bottom: 18px;
}

.dx-auth__field label {
    display: block;
    margin-bottom: 8px;
    color: #90909e;
    font-size: 13px;
    font-weight: 400;
}

.dx-auth-modal .dx-auth__field .form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 11px;
    background: #17171e;
    color: #eeeef2;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .18s, box-shadow .18s;
}

.dx-auth-modal .dx-auth__field .form-control::placeholder {
    color: #777783;
}

.dx-auth-modal .dx-auth__field .form-control:focus {
    outline: none;
    border-color: #ff2f6d;
    box-shadow: 0 0 0 2px rgba(255, 47, 109, .08);
}

.dx-auth__option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 16px;
    color: #a0a0ad;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    cursor: pointer;
}

.dx-auth__option input {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin: 4px 0 0;
    accent-color: #ff2f6d;
    cursor: pointer;
}

.dx-auth__option label { font-weight: 400; cursor: pointer; }
.dx-auth__option small { color: #777783; font-size: inherit; }
.dx-auth__option a { color: #ff5c8a; }
.dx-auth__option a:hover { text-decoration: underline; }

.dx-auth__message {
    min-height: 20px;
    margin: 0 0 18px;
    color: #ff7b8c;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dx-auth__submit {
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2f6d, #ff5a3d);
    box-shadow: 0 8px 24px rgba(255, 47, 109, .25);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .18s;
}

.dx-auth__submit:hover {
    filter: brightness(1.1);
}

.dx-auth__submit:disabled {
    cursor: wait;
    opacity: .65;
}

.dx-auth__switch {
    margin: 18px 0 0;
    color: #777783;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.dx-auth__switch button {
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ff5c8a;
    cursor: pointer;
}

.dx-auth__switch button:hover {
    text-decoration: underline;
}

.dx-auth-modal button:focus-visible {
    outline: 2px solid #ff5c8a;
    outline-offset: 3px;
}

.dx-auth__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 479px) {
    .dx-auth-modal .modal-body { padding: 26px 22px; }
    .dx-auth-modal .dx-auth__field .form-control { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .dx-auth-modal, .dx-auth-modal * { transition: none !important; }
}
