/* Kwazutech auth — fluid animated background */
.kwazutech-auth {
    --kwazutech-navy: #002b5c;
    --kwazutech-navy-deep: #001a38;
    --kwazutech-navy-light: #0a3d7a;
    --kwazutech-accent: #4da3ff;
    --kwazutech-glow: rgba(77, 163, 255, 0.35);
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--kwazutech-navy-deep) 0%, var(--kwazutech-navy) 45%, #003d6b 100%);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.kwazutech-auth__canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.kwazutech-auth__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    will-change: transform;
}

.kwazutech-auth__blob--1 {
    width: 42vw;
    height: 42vw;
    max-width: 520px;
    max-height: 520px;
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, #1a6fd4 0%, transparent 70%);
    animation: kwazutech-float-a 18s ease-in-out infinite;
}

.kwazutech-auth__blob--2 {
    width: 38vw;
    height: 38vw;
    max-width: 480px;
    max-height: 480px;
    bottom: -15%;
    right: -6%;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    animation: kwazutech-float-b 22s ease-in-out infinite;
}

.kwazutech-auth__blob--3 {
    width: 28vw;
    height: 28vw;
    max-width: 360px;
    max-height: 360px;
    top: 35%;
    left: 42%;
    background: radial-gradient(circle, #2563eb 0%, transparent 68%);
    animation: kwazutech-float-c 16s ease-in-out infinite;
}

.kwazutech-auth__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(77, 163, 255, 0.12) 0%, transparent 50%);
    animation: kwazutech-mesh-shift 12s ease-in-out infinite alternate;
}

.kwazutech-auth__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
    opacity: 0.4;
}

.kwazutech-auth__shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.kwazutech-auth__card {
    width: 100%;
    max-width: 1080px;
    min-height: min(640px, 92vh);
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 1.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
    animation: kwazutech-card-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 1024px) {
    .kwazutech-auth__card {
        grid-template-columns: 1fr 1.05fr;
    }
}

.kwazutech-auth__panel-form {
    background: rgba(255, 255, 255, 0.97);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .kwazutech-auth__panel-form {
        padding: 3rem 3.25rem;
    }
}

.kwazutech-auth__form-inner {
    width: 100%;
    max-width: 420px;
}

.kwazutech-auth__logo-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.kwazutech-auth__logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--kwazutech-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 43, 92, 0.35);
    flex-shrink: 0;
}

.kwazutech-auth__brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--kwazutech-navy);
    line-height: 1;
}

.kwazutech-auth__brand-tag {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

.kwazutech-auth__heading {
    font-size: clamp(1.75rem, 4vw, 2.15rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.kwazutech-auth__sub {
    margin-top: 0.65rem;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
}

.kwazutech-auth__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 43, 92, 0.08);
    color: var(--kwazutech-navy);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.kwazutech-auth__form-box {
    margin-top: 1.75rem;
    padding: 1.35rem;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.kwazutech-auth__form-box #login-fields-wrapper .form-group label,
.kwazutech-auth__form-box #login-fields-wrapper label {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}

.kwazutech-auth__form-box #login-fields-wrapper input {
    border-radius: 0.75rem !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.75rem 1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s !important;
}

.kwazutech-auth__form-box #login-fields-wrapper input:focus {
    border-color: var(--kwazutech-navy-light) !important;
    box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.12) !important;
    outline: none !important;
}

.kwazutech-auth__btn {
    width: 100%;
    height: 48px;
    border-radius: 0.85rem !important;
    background: linear-gradient(135deg, var(--kwazutech-navy) 0%, var(--kwazutech-navy-light) 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s !important;
    box-shadow: 0 10px 28px rgba(0, 43, 92, 0.28);
}

.kwazutech-auth__btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 43, 92, 0.35);
}

.kwazutech-auth__btn:active:not(:disabled) {
    transform: translateY(0);
}

.kwazutech-auth__forgot {
    color: var(--kwazutech-navy-light) !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.kwazutech-auth__forgot:hover {
    color: var(--kwazutech-navy) !important;
    text-decoration: underline;
}

.kwazutech-auth__panel-hero {
    display: none;
    position: relative;
    background: linear-gradient(160deg, rgba(0, 26, 56, 0.92) 0%, rgba(0, 43, 92, 0.88) 100%);
    padding: 3rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .kwazutech-auth__panel-hero {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.kwazutech-auth__hero-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: kwazutech-ring-pulse 6s ease-in-out infinite;
}

.kwazutech-auth__hero-ring--1 {
    width: 180px;
    height: 180px;
    top: 12%;
    left: 10%;
}

.kwazutech-auth__hero-ring--2 {
    width: 240px;
    height: 240px;
    bottom: 15%;
    right: 8%;
    animation-delay: 1.5s;
}

.kwazutech-auth__hero-float-icon {
    position: absolute;
    top: 38%;
    right: 22%;
    width: 88px;
    height: 88px;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: kwazutech-float-a 8s ease-in-out infinite;
}

.kwazutech-auth__hero-title {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    max-width: 22rem;
}

.kwazutech-auth__hero-text {
    position: relative;
    z-index: 1;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 24rem;
}

.kwazutech-auth__hero-pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}

.kwazutech-auth__footer-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.kwazutech-auth__footer-links a {
    color: var(--kwazutech-navy-light);
    font-weight: 600;
    text-decoration: none;
}

.kwazutech-auth__footer-links a:hover {
    text-decoration: underline;
}

@keyframes kwazutech-float-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -24px) scale(1.05); }
    66% { transform: translate(-20px, 18px) scale(0.96); }
}

@keyframes kwazutech-float-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-36px, -28px) scale(1.08); }
}

@keyframes kwazutech-float-c {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, 32px); }
}

@keyframes kwazutech-mesh-shift {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.04); }
}

@keyframes kwazutech-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes kwazutech-card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
