/* src/pages/AuthPages.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --auth-bg-app: #20222a;
    --auth-bg-card: #1b1c22;
    --auth-primary: #1b8cf4;
    --auth-primary-hover: #1473cc;
    --auth-secondary: #4a4b52;
    --auth-input-bg: #292a32;
    --auth-text: #ffffff;
    --auth-text-muted: #8b8e98;
}

.auth-split-layout {
    display: flex;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--auth-bg-app);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card-wrapper {
    width: 100%;
    max-width: 1300px;
    min-height: 800px;
    background-color: var(--auth-bg-card);
    border-radius: 24px;
    display: flex;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

/* --- Left Side: Form --- */
.auth-form-side {
    flex: 0 0 500px;
    background-color: var(--auth-bg-card);
    padding: 60px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    position: relative;
}

/* Wavy separator using pseudo-element */
.auth-form-side::after {
    content: '';
    position: absolute;
    right: -100px;
    top: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, var(--auth-bg-card) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

/* Nav inside auth */
.auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

.auth-nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-nav .brand .dot {
    width: 24px;
    height: 24px;
    background-color: var(--auth-primary);
    border-radius: 50%;
}

.auth-nav-links {
    display: flex;
    gap: 32px;
    color: var(--auth-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.auth-nav-links span {
    cursor: pointer;
    transition: color 0.2s;
}

.auth-nav-links span:hover {
    color: var(--auth-text);
}


/* Form Header */
.form-header-text {
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out forwards;
}

.form-header-text h4 {
    font-size: 12px;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-header-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--auth-text);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.form-header-text h2::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--auth-primary);
    border-radius: 50%;
}

.form-switch-text {
    color: var(--auth-text-muted);
    font-size: 15px;
    font-weight: 500;
}

.form-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-link:hover { color: var(--auth-primary-hover); }


/* --- Inputs --- */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.8s ease-out forwards;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .input-wrapper {
    flex: 1;
}

.input-wrapper {
    background: var(--auth-input-bg);
    border-radius: 16px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    height: 64px;
}

.input-wrapper:focus-within {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(27, 140, 244, 0.1);
}

.input-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-content label {
    font-size: 11px;
    color: var(--auth-text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.input-content input,
.input-content select {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    outline: none;
    padding: 0;
}

.input-content select {
    appearance: none;
    cursor: pointer;
}

.input-icon {
    color: var(--auth-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper:focus-within .input-icon {
    color: var(--auth-primary);
}


/* --- Buttons --- */
.auth-buttons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn-secondary {
    background-color: var(--auth-secondary);
    color: white;
    padding: 0 32px;
    height: 56px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-secondary:hover {
    background-color: #555761;
}

.submit-button {
    flex: 1;
    background-color: var(--auth-primary);
    color: white;
    padding: 0 32px;
    height: 56px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(27, 140, 244, 0.2);
}

.submit-button:hover {
    background-color: var(--auth-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(27, 140, 244, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* --- Right Side: Visual --- */
.auth-visual-side {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-visual-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(27, 28, 34, 0.7) 0%, rgba(27, 28, 34, 0.2) 100%);
    z-index: 1;
}

/* Small visual logo on the right */
.visual-logo {
    position: absolute;
    bottom: 60px;
    right: 60px;
    z-index: 2;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
    color: white;
    display: flex;
    align-items: flex-end;
}

.visual-logo::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    margin-left: 4px;
    margin-bottom: 12px;
}


/* Scrollable form for register removed for page-level scrolling */
.form-scroll-area {
    padding-right: 0;
    margin-right: 0;
}

/* Authenticated State Styles */
.authenticated-notice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    animation: fadeIn 0.8s ease-out forwards;
}

.auth-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #1473cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.auth-user-info h3 {
    margin: 0;
    font-size: 18px;
    color: var(--auth-text);
}

.auth-user-info p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--auth-text-muted);
}

.status-text {
    font-size: 14px;
    color: var(--auth-text-muted);
    margin-bottom: 24px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-card-wrapper { flex-direction: column; height: auto; min-height: 800px; }
    .auth-form-side { flex: auto; max-width: 100%; padding: 40px; }
    .auth-visual-side { display: none; }
}
