/* Account sign-in — standalone page (no Kendo). Scoped to .account-auth-body */

.account-auth-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(165deg, #e8eef7 0%, #dce8f5 45%, #e4ecf6 100%) !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.account-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
}

.account-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 40, 80, 0.12), 0 2px 8px rgba(15, 40, 80, 0.06);
    padding: 2rem 2rem 1.5rem;
}

.account-auth-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #1d4ed8;
}

.account-auth-icon svg {
    width: 26px;
    height: 26px;
}

.account-auth-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f2859;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.account-auth-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.45;
}

.account-auth-field {
    margin-bottom: 1.1rem;
}

.account-auth-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f2859;
    margin-bottom: 0.4rem;
}

.account-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.account-auth-label-row .account-auth-label {
    margin-bottom: 0;
}

.account-auth-input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-auth-input::placeholder {
    color: #94a3b8;
}

.account-auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

select.account-auth-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.25rem;
}

.account-auth-input-wrap {
    position: relative;
}

.account-auth-input-wrap .account-auth-input {
    padding-right: 4.25rem;
}

.account-auth-pw-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    border-radius: 6px;
}

.account-auth-pw-toggle:hover {
    background: #eff6ff;
}

.account-auth-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.account-auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.account-auth-btn-primary {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.72rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.account-auth-btn-primary:hover {
    filter: brightness(1.05);
}

.account-auth-btn-primary:active {
    transform: translateY(1px);
}

.account-auth-btn-secondary {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
}

.account-auth-btn-secondary:hover {
    background: #e2e8f0;
}

.account-auth-btn-info {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.account-auth-actions-row {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.account-auth-actions-row .account-auth-btn-primary {
    width: auto;
    flex: 1;
    margin-top: 0;
}

.account-auth-error {
    display: none;
    margin-top: 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #b91c1c;
    line-height: 1.4;
}

.account-auth-error.is-visible {
    display: block;
}

.account-auth-divider {
    margin: 1.35rem 0 1rem;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.account-auth-card-footnote {
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

.account-auth-branding {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
}

.account-auth-branding strong {
    color: #334155;
    font-weight: 700;
}

/* Full-screen loading overlay (login / forgot — site.css not loaded) */
.account-auth-body > .spinner {
    position: fixed;
    inset: 0;
    z-index: 15000000;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.account-auth-body .spinnerdot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: rgba(15, 40, 80, 0.35);
    z-index: 1;
}

.account-auth-body .spinnerdot .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Bootstrap validation hints on auth inputs */
.account-auth-body .was-validated .account-auth-input:invalid {
    border-color: #dc2626;
}

.account-auth-body .invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.account-auth-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
}

.account-auth-link-btn {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
}

.account-auth-link-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}