* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.2);
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.auth-sidebar {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-sidebar h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.auth-sidebar p {
    opacity: 0.9;
    line-height: 1.6;
}

.auth-sidebar ul {
    list-style: none;
    margin-top: 2rem;
}

.auth-sidebar li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-sidebar li::before {
    content: '✓';
    color: #48bb78;
    font-weight: 700;
}

.auth-content {
    padding: 3rem;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2d3748;
}

.logo span {
    color: #4299e1;
}

.tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    position: relative;
    transition: all 0.2s;
}

.tab.active {
    color: #2d3748;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4299e1;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
}

.form-group input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #4299e1;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.error-message {
    background: #fed7d7;
    color: #742a2a;
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.success-message {
    background: #c6f6d5;
    color: #22543d;
    padding: 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: #4a5568;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-sidebar {
        display: none;
    }

    .auth-content {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-content {
        padding: 1.5rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }
}
