@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #7C3AED;
    --primary-hover: #6D28D9;
    --primary-active: #5B21B6;
    --primary-dark: #1E1B4B;
    --primary-light: #F5F3FF;
    --bg-color: #F8FAFC;
    --input-bg: #F1F5F9;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --border-color: #E5E7EB;

    --bg-left: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%);
    --error-bg: #fee2e2;
    --error-text: #ef4444;
    --success-bg: #d1fae5;
    --success-text: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Section */
.auth-sidebar {
    flex: 1.1;
    background: var(--bg-left);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    bottom: -200px;
    right: -200px;
    pointer-events: none;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    max-width: 480px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.sidebar-img-wrapper {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.sidebar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.sidebar-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

.sidebar-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Right Section */
.auth-form-section {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background-color: #ffffff;
    overflow-y: auto;
}

.form-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
}

.auth-header-title {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 35px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 102, 196, 0.1);
}

.password-toggle {
    position: absolute;
    right: 16px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.remember-me input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-submit {
    width: 100%;
    height: 44px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.2);
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

.btn-submit:active {
    background-color: var(--primary-active);
    transform: scale(0.98);
}

/* Footer Link */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-link:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.alert-danger {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(6, 95, 70, 0.2);
}

.error-msg {
    color: var(--error-text);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 1024px) {
    .auth-form-section {
        padding: 40px;
    }
}

@media (max-width: 860px) {
    .auth-container {
        flex-direction: column;
    }
    .auth-sidebar {
        display: none;
    }
    .auth-form-section {
        flex: 1;
        min-height: 100vh;
        padding: 60px 40px;
    }
}

/* Horizontal Sliding Carousel Effect */
.sidebar-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.sidebar-slider-container:active {
    cursor: grabbing;
}

.sidebar-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.slide-item {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Staggered slide active animations */
.sidebar-img-wrapper img {
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.slide-item.active img {
    transform: scale(1.05);
}

.slide-item .sidebar-title {
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

.slide-item.active .sidebar-title {
    opacity: 1;
}

.slide-item .sidebar-desc {
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.slide-item.active .sidebar-desc {
    opacity: 0.85;
}

