
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=DM+Sans:wght@400;600;700&display=swap');

:root {
    --color-primary: #308AD8;
    --color-secondary: #32799d;
    --color-accent: #1ec74c;
    --color-warning: #ff881d;
    --color-danger: #dc2626;
    --color-danger-light: #fee2e2;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-slate-50: #F8FAFC;
    --color-slate-100: #F1F5F9;
    --color-slate-200: #E2E8F0;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-900: #454544;
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;
    
    --gradient-primary: linear-gradient(to right, #308AD8, #3a89c4);
    --gradient-primary-hover: linear-gradient(to right, #32799d, #1ec74c);
    --gradient-background: linear-gradient(to bottom right, #F8FAFC, #FFFFFF, #e8f4f8);
    
    --font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--gradient-background);
    color: var(--color-slate-900);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(58, 137, 196, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(58, 137, 196, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-slate-50);
}

.card {
    background: var(--color-white);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: var(--color-slate-50);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(58, 137, 196, 0.1);
    background: var(--color-white);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-slate-900);
    font-size: 0.875rem;
}

.split-screen {
    display: flex;
    min-height: 100vh;
}

.split-left {
    flex: 1;
    background: var(--gradient-primary);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--color-white);
}

.split-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--color-white);
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

.link-text {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-text:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.user-message {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 1rem 1.25rem;
    border-radius: 1rem 1rem 0 1rem;
    margin: 0.5rem 0 0.5rem auto;
    max-width: 70%;
    word-wrap: break-word;
}

.assistant-message {
    background: var(--color-slate-100);
    color: var(--color-slate-900);
    padding: 1rem 1.25rem;
    border-radius: 1rem 1rem 1rem 0;
    margin: 0.5rem auto 0.5rem 0;
    max-width: 70%;
    word-wrap: break-word;
}

.loading-dots {
    display: inline-block;
}

.loading-dots span {
    animation: blink 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }
    
    .split-left {
        padding: 2rem;
        min-height: 40vh;
    }
    
    .split-right {
        padding: 2rem;
    }
    
    .user-message,
    .assistant-message {
        max-width: 85%;
    }
}
