:root {
    --primary: #4F46E5;
    --primary-hover: #4338ca;
    --text-main: #111827;
    --text-muted: #6B7280;
    --bg-body: #FAFAFB;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --input-bg: #F9FAFB;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}
p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Layouts */
.register-layout {
    display: flex;
    min-height: 100vh;
    background: #FFFFFF;
}

.register-left {
    width: 45%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFFFF;
}

.register-right {
    width: 55%;
    background: #FAFAFB;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #FAFAFB;
    position: relative;
}

/* Logos & Icons */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 2rem;
}
.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.logo-icon svg {
    width: 16px;
    height: 16px;
}

/* Registration specific */
.brand-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.2;
}
.brand-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
}
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.feature-item {
    display: flex;
    gap: 1rem;
}
.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EEF2FF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.feature-text p {
    font-size: 0.75rem;
}
.testimonial {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
.testimonial blockquote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.author-info strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-main);
}
.author-info span {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Cards */
.auth-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-header .logo {
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--input-bg);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: #FFFFFF;
}

/* Inputs with icons */
.input-with-icon {
    position: relative;
}
.input-with-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}
.input-with-icon .form-control {
    padding-left: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}
.btn-outline {
    background: white;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background: var(--bg-body);
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.oauth-buttons .btn {
    flex: 1;
    font-weight: 500;
}
.oauth-buttons svg {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

/* Dividers */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
a:hover {
    text-decoration: underline;
}

/* Checkbox */
.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}
.checkbox-wrap label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}
.checkbox-wrap label a {
    font-weight: 600;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.flex-between .checkbox-wrap {
    margin-bottom: 0;
}

/* Error messages */
.text-danger {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* System Status */
.system-status {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    width: 280px;
}
.status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.status-header span {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}
.status-metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.status-metric strong {
    color: var(--primary);
    font-weight: 600;
}
.status-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.status-bar-fill {
    height: 100%;
    width: 80%;
    background: var(--primary);
}
.status-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    color: var(--text-muted);
}
.status-footer svg {
    color: var(--primary);
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

@media (max-width: 768px) {
    .register-layout {
        flex-direction: column;
    }
    .register-left {
        width: 100%;
        padding: 2rem;
    }
    .register-right {
        width: 100%;
        padding: 2rem 1rem;
    }
    .system-status {
        display: none;
    }
}
