/* Account auth - split layout (Senior UI / Craviczo) */

.account-auth-page {
    margin: 0;
    min-height: 100vh;
    background: #001f34;
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
}

.account-auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
}

.account-auth-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(61, 103, 174, 0.35) 0%, rgba(0, 31, 52, 0.98) 55%, #001f34 100%);
    border-right: 1px solid rgba(211, 252, 52, 0.12);
    overflow: hidden;
}

.account-auth-hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(211, 252, 52, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.account-auth-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.account-auth-hero__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.account-auth-hero__logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(211, 252, 52, 0.12);
    border: 1px solid rgba(211, 252, 52, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #d3fc34);
    font-size: 1.25rem;
}

.account-auth-hero__name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.account-auth-hero__title {
    margin-bottom: 0.75rem;
}

.account-auth-hero__subtitle {
    margin-bottom: 1.5rem;
}

.account-auth-hero__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.account-auth-hero__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.account-auth-hero__features i {
    color: var(--primary-color, #d3fc34);
    margin-top: 0.15rem;
}

.account-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #001f34;
}

.account-auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0;
}

.account-auth-card--wide {
    max-width: 520px;
}

.account-auth-card .admin-card-header,
.account-auth-card .admin-card-body {
    background: transparent;
}

.account-auth-form .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.account-auth-form .form-control {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.account-auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(211, 252, 52, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(211, 252, 52, 0.12);
    color: #fff;
}

.account-auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.account-auth-field-error {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #ff6b7a;
}

.account-auth-field-error.show {
    display: block;
}

.account-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}

.account-auth-terms input {
    margin-top: 0.2rem;
    accent-color: var(--primary-color, #d3fc34);
}

.account-auth-terms a {
    color: var(--primary-color, #d3fc34);
    text-decoration: none;
    font-weight: 600;
}

.account-auth-form-actions {
    justify-content: stretch;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.account-auth-form-actions .btn {
    width: 100%;
    justify-content: center;
}

.account-auth-footer-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.account-auth-footer-links a {
    color: var(--primary-color, #d3fc34);
    font-weight: 600;
    text-decoration: none;
}

.account-auth-footer-links a:hover {
    text-decoration: underline;
}

.account-auth-footer-links__sep {
    margin: 0 0.5rem;
    opacity: 0.35;
}

.account-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 10, 20, 0.8);
}

.account-auth-modal.show {
    display: flex;
}

.account-auth-modal__dialog {
    width: 100%;
    max-width: 400px;
}

.account-auth-modal__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.account-auth-modal__icon--success {
    color: var(--primary-color, #d3fc34);
}

.account-auth-modal__icon--error {
    color: #ff6b7a;
}

.account-auth-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.account-auth-modal__message {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

#loginAlertContainer:not(.d-none) {
    margin-bottom: 1rem;
}

#loginAlertContainer .alert {
    margin-bottom: 0;
}

.account-auth-page .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: businessSpin 0.9s linear infinite;
    margin: 0;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .account-auth-layout {
        grid-template-columns: 1fr;
    }

    .account-auth-hero {
        display: none;
    }

    .account-auth-panel {
        padding: 1.25rem;
    }
}
.account-auth-password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.account-auth-password-strength--weak {
    color: #ff6b7a;
}

.account-auth-password-strength--medium {
    color: #f5b942;
}

.account-auth-password-strength--strong {
    color: var(--primary-color, #d3fc34);
}