/* src/components/Auth/AuthLayout.css */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #171e3d 50%, #2b4cdd 100%);
    font-family: 'Inter', sans-serif;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Premium Animated Background Elements */
.auth-wrapper::before, .auth-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    animation: float 10s infinite alternate ease-in-out;
    pointer-events: none; /* Prevents background orbs from blocking clicks */
}

.auth-wrapper::before {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.45);
    top: -150px;
    left: -100px;
}

.auth-wrapper::after {
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.35);
    bottom: -200px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.auth-box {
    display: flex;
    width: 1000px;
    height: 600px;
    background-color: rgba(26, 29, 45, 0.65); /* Semi-transparent */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Glass edge */
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1; /* Above glowing orbs */
}

/* --- Left Navigation Sidebar --- */
.auth-sidebar {
    width: 100px;
    background-color: rgba(21, 23, 37, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    z-index: 2;
}

.auth-wrapper .brand-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    margin-bottom: 60px;
    cursor: pointer;
}

.auth-wrapper .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    margin-bottom: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.auth-wrapper .nav-item.active {
    color: #fff;
}

.auth-wrapper .nav-item.active::before {
    content: '';
    position: absolute;
    left: -35px;
    /* Adjust based on sidebar padding */
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 4px;
    background-color: #3b82f6;
    border-radius: 0 4px 4px 0;
}

.auth-wrapper .nav-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-wrapper .nav-text {
    font-size: 12px;
    font-weight: 600;
}

/* --- Content Area Grid --- */
.auth-content-grid {
    flex: 1;
    display: flex;
    position: relative;
}

/* --- The Floating Blue Card (Showcase) --- */
.auth-showcase-card {
    position: absolute;
    left: 50px;
    /* Overlap with sidebar slightly or just offset */
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
    width: 380px;
    height: 520px;
    background: #3b82f6;
    /* Bright Blue */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    z-index: 10;
    /* Float above everything */
    display: flex;
    flex-direction: column;
    padding: 40px;
    color: white;
    transition: all 0.5s ease;
    pointer-events: none; /* So the card doesn't block inputs if it overflows */
}

/* Animation for switching */
.auth-type-login .auth-showcase-card {
    left: 80px;
}

.auth-type-register .auth-showcase-card {
    left: 80px;
    /* Keep position, change content */
}

/* Showcase Content */
.auth-wrapper .showcase-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-wrapper .showcase-header p {
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.5;
}

.auth-wrapper .showcase-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.auth-wrapper .illustration-img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    /* Add rudimentary drop shadow filter for depth */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* --- Right Side: Form Area --- */
.auth-form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 60px 60px 450px;
    /* Huge left padding to account for the overlapping card */
    background-color: transparent;
    color: white;
}

.auth-wrapper .form-header-small {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
    font-size: 13px;
    color: #64748b;
}

.auth-wrapper .form-header-small a {
    color: #3b82f6;
    text-decoration: none;
    margin-left: 5px;
    font-weight: 600;
}

.auth-wrapper .form-title {
    margin-bottom: 30px;
}

.auth-wrapper .form-title h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 10px;
}

/* Form Styles Override */
.auth-input-group {
    margin-bottom: 20px;
}

.auth-wrapper .auth-input-group label {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(38, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: rgba(45, 50, 77, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-wrapper .btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.auth-wrapper .btn-primary:hover {
    background-color: #2563eb;
}

.auth-wrapper .btn-primary:disabled {
    background-color: #1e293b;
    cursor: not-allowed;
    color: #64748b;
}

.auth-wrapper .form-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 900px) {
    .auth-box {
        flex-direction: column;
        height: auto;
        width: 100%;
        max-width: 500px;
    }

    .auth-sidebar {
        width: 100%;
        flex-direction: row;
        height: 70px;
        padding: 0 20px;
        justify-content: space-around;
    }

    .auth-wrapper .nav-item {
        margin-bottom: 0;
        flex-direction: row;
        gap: 8px;
    }

    .auth-wrapper .nav-item.active::before {
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: 4px;
        transform: none;
        border-radius: 4px 4px 0 0;
    }

    .auth-showcase-card {
        display: none;
        /* Hide illustrative card on small screens */
    }

    .auth-form-area {
        padding: 40px;
    }
}
/* Subtle Scrollbar for form area */
.auth-wrapper ::-webkit-scrollbar {
  width: 6px;
}
.auth-wrapper ::-webkit-scrollbar-track {
  background: #1a1d2d; 
}
.auth-wrapper ::-webkit-scrollbar-thumb {
  background: #3b82f6; 
  border-radius: 3px;
}
.auth-wrapper ::-webkit-scrollbar-thumb:hover {
  background: #2563eb; 
}
