/* Authentication Pages (Login & Register) Modern Styling */

.auth-page-container {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.auth-card-split {
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(226, 232, 240, 0.8);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Left Aside - Brand Experience */
.auth-aside {
    background: radial-gradient(circle at 20% 20%, #1e1b4b 0%, #090d16 100%);
    color: #ffffff;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-aside::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.auth-aside-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 30px;
}

.auth-aside-content h2 {
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 16px 0;
}

.auth-aside-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.auth-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-aside-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-avatar-stack {
    display: flex;
}

.auth-avatar-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4f46e5;
    border: 2px solid #090d16;
    margin-right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.auth-footer-text {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Right Side - Interactive Form */
.auth-form-side {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.auth-header {
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
}

.auth-header p {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
}

/* Demo Quick-Fill Box */
.demo-accounts-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.demo-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.demo-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.demo-chip:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* Input Fields with Icons */
.input-with-icon {
    position: relative;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 42px !important;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    color: #94a3b8;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.toggle-password-btn:hover {
    color: #0f172a;
}

/* Submit Action Button */
.btn-auth-submit {
    width: 100%;
    padding: 13px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
}

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

.auth-bottom-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-bottom-switch a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.auth-bottom-switch a:hover {
    text-decoration: underline;
}

/* Responsive Collapse */
@media (max-width: 860px) {
    .auth-card-split {
        grid-template-columns: 1fr;
    }
    .auth-aside {
        padding: 32px 24px;
    }
    .auth-form-side {
        padding: 36px 24px;
    }
}
