/* Veblot Calendar — Minimal split login */

.auth-minimal {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #eceef2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-minimal-shell {
    width: 100%;
    max-width: 1080px;
    animation: authMinimalIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-minimal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 4px 6px rgba(16, 24, 40, 0.04),
        0 24px 48px rgba(16, 24, 40, 0.08);
}

/* ─── Left visual panel ─── */
.auth-minimal-visual {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.auth-minimal-visual-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, #3a3a3a 0%, #1c1c1c 35%, #0d0d0d 100%),
        radial-gradient(ellipse 120% 80% at 20% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 45%);
    animation: authVisualZoom 20s ease-in-out infinite alternate;
}

.auth-minimal-visual-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            125deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.02) 80px,
            rgba(255, 255, 255, 0.02) 81px
        );
}

.auth-minimal-visual-lines {
    position: absolute;
    inset: -50%;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 48px,
        rgba(255, 255, 255, 0.025) 48px,
        rgba(255, 255, 255, 0.025) 49px
    );
    animation: authLinesDrift 28s linear infinite;
    pointer-events: none;
}

.auth-minimal-visual-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    top: 35%;
    left: 20%;
    filter: blur(40px);
    animation: authGlowMove 14s ease-in-out infinite alternate;
    pointer-events: none;
}

.auth-minimal-visual-shimmer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-minimal-visual-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 60%
    );
    animation: authShimmerSweep 8s ease-in-out infinite;
}

.auth-minimal-visual-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background:
        radial-gradient(ellipse 90% 70% at 30% 100%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 70% 90%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.auth-minimal-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.2) 100%);
}

.auth-minimal-visual-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2rem;
}

.auth-minimal-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.auth-minimal-logo-icon {
    display: flex;
    animation: authLogoFloat 4s ease-in-out infinite;
}

.auth-minimal-logo-icon img {
    filter: brightness(0) invert(1);
    display: block;
}

.auth-minimal-logo-text {
    display: inline-block;
}

.auth-minimal-quote {
    max-width: 320px;
}

.auth-minimal-quote h1 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-minimal-quote p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

/* ─── Right form panel ─── */
.auth-minimal-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #fff;
}

.auth-minimal-form-inner {
    width: 100%;
    max-width: 360px;
}

.auth-minimal-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #101828;
}

.auth-minimal-header p {
    margin: 0 0 1.75rem;
    font-size: 0.9375rem;
    color: #667085;
}

.auth-minimal-alert {
    margin-bottom: 1rem;
    padding: 0.65rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.auth-minimal-field {
    margin-bottom: 1.125rem;
}

.auth-minimal-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #344054;
}

.auth-minimal-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.auth-minimal-label-row label {
    margin-bottom: 0;
}

.auth-minimal-forgot {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #667085;
    text-decoration: none;
    white-space: nowrap;
}

.auth-minimal-forgot:hover {
    color: #101828;
    text-decoration: underline;
}

.auth-minimal-field input {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-minimal-field input::placeholder {
    color: #98a2b3;
}

.auth-minimal-field input:focus {
    outline: none;
    border-color: #101828;
    box-shadow: 0 0 0 3px rgba(16, 24, 40, 0.08);
}

.auth-minimal-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #344054;
    cursor: pointer;
    user-select: none;
}

.auth-minimal-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #101828;
    cursor: pointer;
}

.auth-minimal-submit {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background: #101828;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, transform 0.15s;
}

.auth-minimal-submit:hover {
    background: #1d2939;
}

.auth-minimal-submit:active {
    transform: scale(0.99);
}

.auth-minimal-submit.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.auth-minimal-submit.is-loading .auth-minimal-submit-text {
    opacity: 0;
}

.auth-minimal-spinner {
    display: none;
    position: absolute;
    inset: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authMinimalSpin 0.65s linear infinite;
}

.auth-minimal-submit.is-loading .auth-minimal-spinner {
    display: block;
}

.auth-minimal-footer {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #667085;
}

.auth-minimal-footer a {
    color: #101828;
    font-weight: 600;
    text-decoration: none;
}

.auth-minimal-footer a:hover {
    text-decoration: underline;
}

/* ─── Left panel entrance & ambient motion ─── */
.auth-visual-in {
    opacity: 0;
    transform: translateY(18px);
    animation: authVisualReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-visual-in--logo {
    animation-name: authVisualRevealLeft;
    animation-delay: 0.25s;
}

.auth-visual-in--title {
    animation-delay: 0.55s;
}

.auth-visual-in--desc {
    animation-delay: 0.72s;
}

@keyframes authVisualReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authVisualRevealLeft {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes authLinesDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(48px, 48px); }
}

@keyframes authGlowMove {
    from {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    to {
        transform: translate(40px, -30px) scale(1.15);
        opacity: 1;
    }
}

@keyframes authShimmerSweep {
    0%, 100% {
        transform: translateX(0) rotate(25deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    50% {
        transform: translateX(320%) rotate(25deg);
        opacity: 1;
    }
    60%, 100% {
        transform: translateX(320%) rotate(25deg);
        opacity: 0;
    }
}

@keyframes authLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ─── Form entrance animations ─── */
.auth-reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: authReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.auth-reveal--1 { animation-delay: 0.08s; }
.auth-reveal--2 { animation-delay: 0.14s; }
.auth-reveal--3 { animation-delay: 0.2s; }
.auth-reveal--4 { animation-delay: 0.26s; }
.auth-reveal--5 { animation-delay: 0.32s; }
.auth-reveal--6 { animation-delay: 0.38s; }

@keyframes authMinimalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authVisualZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

@keyframes authMinimalSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
    .auth-minimal-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-minimal-visual {
        min-height: 220px;
    }

    .auth-minimal-quote h1 {
        font-size: 1.375rem;
    }

    .auth-minimal-form {
        padding: 2rem 1.5rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .auth-minimal {
        padding: 0.75rem;
    }

    .auth-minimal-form {
        padding: 1.5rem 1.25rem 2rem;
    }

    .auth-minimal-field input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-minimal-shell,
    .auth-reveal,
    .auth-visual-in,
    .auth-minimal-visual-bg,
    .auth-minimal-visual-lines,
    .auth-minimal-visual-glow,
    .auth-minimal-visual-shimmer::after,
    .auth-minimal-logo-icon {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}
