* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #58cc02;
    --primary-hover: #4fb001;
    --secondary-color: #1cb0f6;
    --danger-color: #ff4b4b;
    --text-dark: #3c3c3c;
    --text-light: #777;
    --border-color: #e5e5e5;
    --bg-light: #f7f7f7;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.brand {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.brand h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.brand p {
    font-size: 20px;
    opacity: 0.9;
}

.features {
    position: relative;
    z-index: 1;
}

.feature {
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature .icon {
    font-size: 32px;
    background: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature p {
    opacity: 0.9;
    font-size: 16px;
}

/* Right Panel */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.auth-container {
    width: 100%;
    max-width: 460px;
    position: relative;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 32px;
}

/* Social Login */
.social-login {
    margin-bottom: 24px;
}

.social-btn {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn:hover {
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.social-btn:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 0 #46a302;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #46a302;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #46a302;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Switch Form */
.switch-form {
    text-align: center;
    margin-top: 24px;
    color: var(--text-light);
    font-size: 14px;
}

.switch-form a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Messages */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 1000;
}

.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-success {
    background: #d7f4d7;
    color: #2d6a2d;
    border-left: 4px solid var(--primary-color);
}

.message-error {
    background: #ffe0e0;
    color: #c41e3a;
    border-left: 4px solid var(--danger-color);
}

.message-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid var(--secondary-color);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }

    .left-panel {
        padding: 40px;
        min-height: 300px;
    }

    .brand h1 {
        font-size: 36px;
    }

    .features {
        display: none;
    }

    .right-panel {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .auth-form h2 {
        font-size: 26px;
    }

    .left-panel {
        padding: 30px 20px;
    }

    .brand h1 {
        font-size: 28px;
    }

    .brand p {
        font-size: 16px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Links */
a {
    color: var(--secondary-color);
    transition: color 0.2s;
}

a:hover {
    color: #1590c6;
}