/* CloudNexus auth pages — full viewport layout (works without Tailwind arbitrary classes) */

.auth-page {
    font-family: Inter, system-ui, sans-serif;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, hsla(28, 100%, 74%, 0.14) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(28, 100%, 74%, 0.1) 0, transparent 45%);
}

.auth-display {
    font-family: Outfit, system-ui, sans-serif;
}

/* Shell: sidebar + form fill entire screen */
.auth-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

@media (min-width: 1024px) {
    .auth-shell {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Left brand panel — full height on desktop */
.auth-brand-panel {
    display: none;
    position: relative;
    overflow: hidden;
    background: #0f172a;
    color: #fff;
}

@media (min-width: 1024px) {
    .auth-brand-panel {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 44%;
        max-width: 520px;
        min-height: 100vh;
        min-height: 100dvh;
        flex-shrink: 0;
        padding: 2.5rem 3rem;
    }
}

@media (min-width: 1280px) {
    .auth-brand-panel {
        width: 42%;
        padding: 3rem 3.5rem;
    }
}

.auth-brand-panel__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #0f172a 45%, #1e293b 100%);
    pointer-events: none;
}

.auth-brand-panel__glow-a {
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: rgba(255, 140, 0, 0.2);
    border-radius: 50%;
    filter: blur(100px);
    transform: translateY(-50%) translateX(33%);
    pointer-events: none;
}

.auth-brand-panel__glow-b {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18rem;
    height: 18rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    transform: translateY(33%) translateX(-25%);
    pointer-events: none;
}

.auth-brand-panel__content {
    position: relative;
    z-index: 1;
}

.auth-brand-panel__middle {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    max-width: 28rem;
}

.auth-brand-panel__footer {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    color: #64748b;
}

/* Right form panel — centered vertically */
.auth-form-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: transparent;
}

.auth-form-panel__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .auth-form-panel__mobile-header {
        display: none;
    }
}

.auth-form-panel__center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 2.5rem;
}

@media (min-width: 640px) {
    .auth-form-panel__center {
        padding: 2.5rem 1.5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .auth-form-panel__center {
        padding: 3rem 2rem;
    }
}

.auth-form-panel__inner {
    width: 100%;
    max-width: 400px;
}

.auth-input {
    display: block;
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:hover {
    border-color: #cbd5e1;
}

.auth-input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.auth-form-submit {
    margin-top: 0.75rem;
}

.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    padding: 0 1.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff8c00 0%, #f97316 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.auth-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
    transform: translateY(-1px);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.625rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.auth-tab--active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.auth-tab--inactive {
    color: #64748b;
}

.auth-tab--inactive:hover {
    color: #334155;
}

.auth-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .auth-card {
        padding: 2rem;
    }
}

.auth-tabs {
    display: flex;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
}

.auth-legal {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
}

.auth-legal a {
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}

.auth-legal a:hover {
    color: #ff8c00;
}
