/**
 * Login Admin Sekolah — minimal, centered
 */

.auth-asc {
    --asc-blue-50: #f8fafc;
    --asc-blue-100: #eff6ff;
    --asc-blue-500: #3b82f6;
    --asc-blue-600: #2563eb;
    --asc-blue-700: #1d4ed8;
    --asc-blue-900: #0f172a;

    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--ui-font, 'Segoe UI', system-ui, sans-serif);
    background: var(--asc-blue-50);
    color: var(--asc-blue-900);
}

.auth-asc-wrap {
    display: flex;
    min-height: inherit;
}

.auth-asc-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-asc-panel {
    width: 100%;
    max-width: 22rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
}

.auth-asc-head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.auth-asc-mark {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: var(--asc-blue-100);
    color: var(--asc-blue-600);
    font-size: 1.125rem;
}

.auth-asc-head h1 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--asc-blue-900);
}

.auth-asc-head p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.auth-asc-form {
    display: flex;
    flex-direction: column;
}

.auth-asc-field {
    margin-bottom: 1rem;
}

.auth-asc-field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.auth-asc-input-wrap {
    position: relative;
}

.auth-asc-input-wrap > i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    line-height: 1;
}

.auth-asc-input-wrap input {
    width: 100%;
    min-height: 2.625rem;
    padding: 0.5rem 0.875rem 0.5rem 2.5rem;
    font-size: 0.9375rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-asc-input-wrap input:focus {
    outline: none;
    border-color: var(--asc-blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.auth-asc-input-wrap.auth-asc-password-wrap input {
    padding-right: 2.75rem;
}

.auth-asc-password-toggle {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.auth-asc-password-toggle i {
    position: static;
    transform: none;
    display: block;
    line-height: 1;
    font-size: 1rem;
}

.auth-asc-password-toggle:hover {
    color: var(--asc-blue-600);
    background: #eff6ff;
}

.auth-asc-submit {
    width: 100%;
    min-height: 2.625rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    background: var(--asc-blue-600);
    cursor: pointer;
    transition: background 0.15s;
}

.auth-asc-submit:hover {
    background: var(--asc-blue-700);
}

.auth-asc-foot {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.8125rem;
}

.auth-asc-foot a {
    color: var(--asc-blue-600);
    font-weight: 500;
    text-decoration: none;
}

.auth-asc-foot a:hover {
    text-decoration: underline;
}

.auth-asc-panel .alert {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
}

.auth-asc-panel .auth-asc-captcha {
    margin-bottom: 1rem;
}

.auth-asc-captcha-head {
    margin-bottom: 0.5rem;
}

.auth-asc-captcha-head label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.auth-asc-captcha-stage {
    position: relative;
    margin-bottom: 0.625rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-asc-captcha-stage.is-refreshed {
    border-color: #93c5fd;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-asc-captcha-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.375rem;
    padding-right: 2.25rem;
}

.auth-asc-captcha-visual svg {
    display: block;
    width: 100%;
    max-width: 14.25rem;
    height: auto;
}

.auth-asc-captcha-refresh {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.auth-asc-captcha-refresh:hover:not(:disabled) {
    color: var(--asc-blue-700);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.auth-asc-captcha-refresh:disabled {
    opacity: 0.5;
    cursor: wait;
}

.auth-asc-captcha-refresh.is-spinning i {
    animation: auth-asc-cap-spin 0.55s linear infinite;
}

@keyframes auth-asc-cap-spin {
    to { transform: rotate(360deg); }
}

.auth-asc-captcha-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(3px);
}

.auth-asc-captcha-loader-ring {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #dbeafe;
    border-top-color: var(--asc-blue-600);
    border-radius: 50%;
    animation: auth-asc-cap-ring 0.7s linear infinite;
}

@keyframes auth-asc-cap-ring {
    to { transform: rotate(360deg); }
}

.auth-asc-captcha-stage.is-loading .auth-asc-captcha-visual {
    opacity: 0.35;
}

.auth-asc-captcha-input-wrap {
    position: relative;
}

.auth-asc-captcha-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 3rem 0.5rem 0.875rem;
    font-family: 'Consolas', 'SFMono-Regular', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-asc-captcha-input:focus {
    outline: none;
    border-color: var(--asc-blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-asc-captcha-input::placeholder {
    letter-spacing: normal;
    text-transform: none;
    font-weight: 500;
    font-family: var(--ui-font, 'Segoe UI', system-ui, sans-serif);
    font-size: 0.875rem;
    color: #94a3b8;
}

.auth-asc-captcha-count {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.15s;
}

.auth-asc-captcha-input-wrap.is-complete .auth-asc-captcha-count {
    color: var(--asc-blue-600);
}

@media (prefers-reduced-motion: reduce) {
    .auth-asc-captcha-refresh.is-spinning i,
    .auth-asc-captcha-loader-ring {
        animation: none !important;
    }
}

