:root {
    --purple-primary: #7c3aed;
    --purple-hover: #6d28d9;
    --purple-bg: #6366f1;
    --purple-dark: #4c1d95;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

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

body {
    background-color: #ffffff;
    color: var(--text-dark);
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

.auth-banner {
    flex: 1;
    background: radial-gradient(circle at 50% 50%, #7e22ce 0%, #581c87 100%);
    color: #ffffff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.banner-content {
    max-width: 520px;
    margin: 0 auto;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 48px;
}

.brand-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 8px;
    display: flex;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.banner-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 48px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #ffffff;
}

.form-wrapper {
    width: 100%;
    max-width: 440px;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.role-selector {
    display: flex;
    background-color: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.role-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-btn.active {
    background-color: var(--purple-primary);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.forgot-wrapper {
    text-align: left;
    margin-bottom: 24px;
}

.link-purple {
    color: var(--purple-primary);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

.link-purple:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--purple-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.auth-actions {
    margin-top: 24px;
    text-align: center;
}

.btn-demo {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 12px;
}

.btn-demo:hover {
    color: var(--text-dark);
}

.register-prompt {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-footer {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.security-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.legal-links {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

.alert-danger {
    background-color: #fef2f2;
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
}

@media (max-width: 900px) {
    .auth-wrapper {
        flex-direction: column;
    }
    .auth-banner {
        padding: 40px 20px;
    }
}
