/* =========================================
   PREMIUM LOGIN & REGISTER PAGE STYLES
   ========================================= */

/* --- Page Layout --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background Decoration (Optional) */
.login-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

.login-body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0) 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    z-index: 0;
}

/* --- Main Glass Card Container --- */
.login-container-new {
    width: 100%;
    max-width: 1000px;
    z-index: 10;
}

.login-card {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    min-height: 600px;
    transition: all 0.3s ease;
}

/* --- Left Side: Form --- */
.login-form-side {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo img {
    height: 50px;
    /* Slightly larger logo */
    margin-bottom: 15px;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
    margin-top: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s;
}

.input-icon input {
    width: 100%;
    padding: 14px 14px 14px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    background: #f8fafc;
    color: #334155;
}

.input-icon input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-icon input:focus+i {
    color: #6366f1;
}

.toggle-password {
    left: auto !important;
    right: 18px;
    cursor: pointer;
}

/* Actions & Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.btn-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #64748b;
}

.login-footer a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Error Message */
.error-msg {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Right Side: Visual --- */
.login-visual-side {
    flex: 1.1;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    color: #fff;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(79, 70, 229, 0.4) 100%);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.visual-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.visual-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 500;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.benefit-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.benefit-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

.testimonial-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.user-profile h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-profile span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.stars {
    margin-bottom: 15px;
    color: #fbbf24;
    font-size: 1.1rem;
}

/* --- Responsive Design --- */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .login-container-new {
        max-width: 90%;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .login-visual-side {
        display: none;
        /* Hide visual side on tablet portrait and smaller */
    }

    .login-card {
        max-width: 500px;
        margin: 0 auto;
        min-height: auto;
    }

    .login-form-side {
        padding: 40px 30px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .login-body {
        padding: 15px;
    }

    .login-card {
        border-radius: 20px;
    }

    .login-form-side {
        padding: 30px 20px;
    }

    .login-header .logo img {
        height: 40px;
    }

    .btn-auth-submit {
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}