/* ASP.NET control overrides for Register page */

/* Browser autofill — match normal themed inputs */
.register-page .form-group__input:-webkit-autofill,
.register-page .form-group__input:-webkit-autofill:hover,
.register-page .form-group__input:-webkit-autofill:focus,
.register-page .form-group__input:-webkit-autofill:active,
.register-page select.form-group__input:-webkit-autofill,
.register-page select.form-group__input:-webkit-autofill:hover,
.register-page select.form-group__input:-webkit-autofill:focus,
.register-page select.form-group__input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    border-color: rgba(108, 99, 255, 0.1) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(22, 27, 39, 0.5) inset !important;
    box-shadow: 0 0 0 1000px rgba(22, 27, 39, 0.5) inset !important;
    transition: background-color 9999s ease-out 0s;
}

.register-page .form-group__input:-webkit-autofill:focus,
.register-page select.form-group__input:-webkit-autofill:focus {
    border-color: var(--primary) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(108, 99, 255, 0.05) inset, 0 0 0 4px rgba(108, 99, 255, 0.1), 0 0 30px rgba(108, 99, 255, 0.06) !important;
    box-shadow: 0 0 0 1000px rgba(108, 99, 255, 0.05) inset, 0 0 0 4px rgba(108, 99, 255, 0.1), 0 0 30px rgba(108, 99, 255, 0.06) !important;
}

.register-page .form-group__input:autofill {
    box-shadow: 0 0 0 1000px rgba(22, 27, 39, 0.5) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    border-color: rgba(108, 99, 255, 0.1) !important;
}

input[type="submit"].auth-submit-btn,
input[type="button"].auth-submit-btn {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 14px;
    font-family: var(--font2);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #8b5cf6, var(--secondary));
    background-size: 200% 200%;
    animation: btnGradient 4s ease infinite;
    transition: all 0.4s ease;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

input[type="submit"].auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4), 0 0 60px rgba(108, 99, 255, 0.15);
}

.register-page .form-row--name {
    grid-template-columns: 100px 1fr 1fr;
}

.register-page .form-group--prefix .form-group__input {
    padding-left: 14px;
    text-align: center;
}

.register-page .register-hidden-fields {
    display: none !important;
}

/* Auth page loader — match login (index.aspx) */
.auth-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 8, 15, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: loaderOverlayIn 0.25s ease forwards;
}

.auth-loader-card {
    width: min(320px, 100%);
    padding: 32px 28px 26px;
    border-radius: 20px;
    text-align: center;
    background: rgba(15, 20, 40, 0.88);
    border: 1px solid rgba(108, 99, 255, 0.2);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 80px rgba(108, 99, 255, 0.12);
    animation: loaderCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.auth-loader-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(108, 99, 255, 0.14), transparent 45%),
        radial-gradient(circle at 80% 100%, rgba(0, 212, 255, 0.1), transparent 40%);
    pointer-events: none;
}

.auth-loader-card > * {
    position: relative;
    z-index: 1;
}

.auth-loader-spinner {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
}

.auth-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.auth-loader-ring--outer {
    border-top-color: var(--primary);
    border-right-color: rgba(108, 99, 255, 0.25);
    animation: loaderSpin 1.1s linear infinite;
}

.auth-loader-ring--inner {
    inset: 10px;
    border-bottom-color: var(--secondary);
    border-left-color: rgba(0, 212, 255, 0.2);
    animation: loaderSpinReverse 0.85s linear infinite;
}

.auth-loader-core {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.22), rgba(0, 212, 255, 0.12));
    border: 1px solid rgba(108, 99, 255, 0.25);
    color: #c4b5fd;
    font-size: 1rem;
    animation: loaderPulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 24px rgba(108, 99, 255, 0.25);
}

.auth-loader-title {
    margin: 0 0 6px;
    font-family: var(--font2);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.auth-loader-text {
    margin: 0 0 18px;
    font-size: 0.86rem;
    color: var(--muted);
}

.auth-loader-dots span {
    animation: loaderDotBlink 1.2s infinite;
    opacity: 0.2;
}

.auth-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.auth-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

.auth-loader-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(108, 99, 255, 0.12);
    overflow: hidden;
}

.auth-loader-bar span {
    display: block;
    height: 100%;
    width: 35%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: loaderBarSlide 1.4s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.45);
}

@keyframes loaderOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes loaderCardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderSpinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(108, 99, 255, 0.25); }
    50% { transform: scale(1.06); box-shadow: 0 0 32px rgba(108, 99, 255, 0.4); }
}

@keyframes loaderDotBlink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

@keyframes loaderBarSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.register-page .auth-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.auth-brand-logo__img {
    /* height: 58px; */
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(108, 99, 255, 0.35));
}

.auth-brand-logo__img--sm {
    height: 38px;
    max-width: 150px;
}

.register-page .mobile-brand-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 860px) {
    .register-page .mobile-brand-logo {
        display: flex !important;
    }
}
