@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #333333;
    --accent-color: #000000;
    --bg-color: #f9f9f9;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --error-color: #dd3833;
    --success-color: #2cc62c;
    --slide-speed: 0.4s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
}

.auth-container {
    display: flex;
    background: #ffffff;
    width: 900px;
    max-width: 95%;
    height: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

/* Left Side - Form Area */
.form-section {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-header p {
    color: #777;
    font-size: 0.95rem;
}

/* Slides Container */
.slides-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    /* Adjust based on content */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--slide-speed) ease;
    pointer-events: none;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    visibility: visible;
}

.slide.prev {
    transform: translateX(-50px);
    opacity: 0;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-color);
}

.input-error {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: transparent;
    color: #555;
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    padding: 0;
}

/* Right Side - Illustration */
.illustration-section {
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.illustration-placeholder {
    width: 85%;
    height: 85%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.illustration-placeholder svg {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.success-message {
    color: var(--success-color);
    background: #f0f9f0;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: auto;
    }

    .illustration-section {
        display: none;
    }

    .form-section {
        padding: 40px 20px;
        min-height: 500px;
    }
}

/* Animations & Micro-interactions */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.strength-meter {
    height: 4px;
    background: #eee;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
    transition: width 0.3s;
    width: 0%;
}

.strength-weak {
    background-color: var(--error-color);
    width: 33%;
}

.strength-medium {
    background-color: #f0ad4e;
    width: 66%;
}

.strength-strong {
    background-color: var(--success-color);
    width: 100%;
}