:root {
    --auth-bg-dark: #0f172a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: white;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    opacity: 0;
    animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
    to {
        opacity: 1;
    }
}

.auth-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    flex-direction: row;
}

/* Left Panel */
.auth-left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--auth-bg-dark);
    margin-bottom: 2.5rem;
}

.logo-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.auth-subtitle {
    color: #64748b;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: var(--auth-bg-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    height: 3.25rem;
    /* Explicit height matching input feel */
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.875rem;
}

.auth-footer a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

/* Right Panel */
.auth-right {
    width: 50%;
    background: var(--auth-bg-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.6);
}

.preview-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem;
    color: white;
}

.preview-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preview-content p {
    color: #94a3b8;
    font-size: 1.125rem;
    max-width: 480px;
    margin: 0 auto;
}

.error-msg {
    background: #fef2f2;
    color: #ef4444;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: none;
    border: 1px solid #fee2e2;
}

@media (max-width: 1024px) {
    .auth-right {
        display: none;
    }

    .auth-left {
        width: 100%;
    }
}