:root {
    --sirdii-blue: #2B78B7;
    --sirdii-green: #80C342;
    --sirdii-dark: #1e4d75;
    --sirdii-deep: #153a5c;
}

body.auth-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--sirdii-deep);
    background-image:
        radial-gradient(ellipse 90% 70% at 15% 5%, rgba(128, 195, 66, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 90% 95%, rgba(43, 120, 183, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 45%, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
        linear-gradient(155deg, #153a5c 0%, #1e4d75 28%, #2B78B7 52%, #2a6b3a 78%, #4a8f2e 100%);
    background-attachment: fixed;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.auth-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.7;
}

.auth-mesh {
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 210deg at 30% 25%, rgba(128, 195, 66, 0.18), transparent 35%),
        conic-gradient(from 30deg at 75% 70%, rgba(43, 120, 183, 0.22), transparent 40%);
    animation: auth-mesh-shift 22s ease-in-out infinite alternate;
}

@keyframes auth-mesh-shift {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(6deg) scale(1.05); }
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    animation: auth-float 18s ease-in-out infinite;
}

.auth-orb--blue {
    top: -8%;
    right: -5%;
    width: 480px;
    height: 480px;
    background: rgba(56, 148, 220, 0.55);
}

.auth-orb--green {
    bottom: -12%;
    left: -8%;
    width: 520px;
    height: 520px;
    background: rgba(128, 195, 66, 0.5);
    animation-delay: -6s;
}

.auth-orb--accent {
    top: 40%;
    left: 55%;
    width: 320px;
    height: 320px;
    background: rgba(100, 180, 255, 0.35);
    animation-delay: -12s;
    animation-duration: 24s;
}

.auth-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: auth-ring-pulse 14s ease-in-out infinite;
}

.auth-ring--1 {
    width: 420px;
    height: 420px;
    top: -8%;
    left: -12%;
    border-width: 2px;
    border-color: rgba(128, 195, 66, 0.2);
}

.auth-ring--2 {
    width: 300px;
    height: 300px;
    bottom: 5%;
    right: -6%;
    border-color: rgba(255, 255, 255, 0.1);
    animation-delay: -5s;
}

.auth-ring--3 {
    width: 180px;
    height: 180px;
    top: 18%;
    right: 12%;
    border-color: rgba(43, 120, 183, 0.25);
    animation-delay: -9s;
}

.auth-blob {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    opacity: 0.15;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(128, 195, 66, 0.2));
    animation: auth-blob-morph 20s ease-in-out infinite;
}

.auth-blob--1 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 8%;
}

.auth-blob--2 {
    width: 140px;
    height: 140px;
    top: 12%;
    right: 18%;
    animation-delay: -8s;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(43, 120, 183, 0.25));
}

@keyframes auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.06); }
}

@keyframes auth-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes auth-blob-morph {
    0%, 100% {
        border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
        transform: rotate(12deg);
    }
}

.auth-page > *:not(.auth-bg) {
    position: relative;
    z-index: 1;
}

.auth-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 8px 16px -4px rgba(0, 0, 0, 0.12),
        0 32px 64px -16px rgba(15, 40, 65, 0.35);
}

.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(43, 120, 183, 0.35), rgba(128, 195, 66, 0.3), rgba(255, 255, 255, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.auth-hero-text {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.auth-hero-subtext {
    color: rgba(255, 255, 255, 0.72);
}

.auth-footer-text {
    color: rgba(255, 255, 255, 0.55);
}

.auth-field {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-field:focus {
    background-color: #fff;
    border-color: var(--sirdii-blue);
    box-shadow: 0 0 0 4px rgba(43, 120, 183, 0.1);
}

.auth-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn .auth-btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.auth-btn:hover:not(:disabled) .auth-btn-shine {
    transform: translateX(100%);
}

.auth-fade-up {
    animation: auth-fade-up 0.6s ease both;
}

.auth-fade-up-delay-1 { animation-delay: 0.08s; }
.auth-fade-up-delay-2 { animation-delay: 0.16s; }
.auth-fade-up-delay-3 { animation-delay: 0.24s; }

@keyframes auth-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.auth-alert {
    animation: auth-fade-up 0.4s ease both;
}

.auth-otp-input {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.45em;
}

.auth-otp-input::placeholder {
    letter-spacing: 0.45em;
    color: #cbd5e1;
}

.auth-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sirdii-blue);
}

.auth-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(43, 120, 183, 0.2), transparent);
}

.strength-track {
    display: none;
}

.strength-fill {
    display: none;
}

.auth-card-panel {
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.auth-card-header {
    text-align: center;
}

.auth-card-inset-logo .auth-card-header img {
    width: 4rem;
    height: auto;
    margin: 0 auto 0.75rem;
}

.auth-card-inset-logo img {
    filter: none;
}

.auth-register-shell {
    max-width: 40rem;
}

.auth-phone-wrap .iti {
    width: 100%;
    display: block;
}

.auth-phone-wrap .iti__country-container {
    border-radius: 1rem 0 0 1rem;
}

.auth-phone-wrap .auth-phone-input {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0 1rem 1rem 0;
}

.auth-phone-wrap .iti--separate-dial-code .iti__selected-country {
    border-radius: 1rem 0 0 1rem;
    background: rgba(255, 255, 255, 0.85);
    border-right: 1px solid #e2e8f0;
}

.auth-phone-wrap .iti--separate-dial-code .iti__selected-dial-code {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.auth-phone-wrap .iti__dropdown-content {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px -12px rgba(15, 40, 65, 0.25);
    max-height: 240px;
}

.auth-phone-wrap .iti__search-input {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem;
    width: calc(100% - 1rem);
    font-size: 0.875rem;
}

.auth-phone-wrap .iti__selected-country-primary:hover,
.auth-phone-wrap .iti__selected-country:has(+ .iti__dropdown-content:hover) {
    background: rgba(43, 120, 183, 0.06);
}

.auth-card-panel-wide {
    min-height: auto;
}

.auth-spinner {
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #fff;
    width: 18px;
    height: 18px;
    animation: auth-spin 0.75s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.otp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(43, 120, 183, 0.1), rgba(128, 195, 66, 0.12));
    border: 1px solid rgba(43, 120, 183, 0.12);
    margin-bottom: 1rem;
}

.auth-logo-glow {
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.25));
}
