:root {
    --primary: #EE786D;
    --primary-foreground: #FFFFFF;
    --background: #1C1C1C;
    --card: #242424;
    --card-foreground: #F5F5F5;
    --muted: #808080;
    --border: #333333;
    --input: #242424;
    --ring: rgba(238, 120, 109, 0.3);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--card-foreground);
    min-height: 100vh;
    display: flex;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Side - Hero */
.hero-section {
    display: none;
    flex: 1.2;
    position: relative;
    overflow: hidden;
    background-image: url('../images/login-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 48px;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .hero-section {
        display: flex;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--background) 0%, rgba(28, 28, 28, 0.2) 20%, transparent 100%),
        linear-gradient(to top, rgba(28, 28, 28, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-box {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.05em;
    color: white;
}

.hero-footer {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 16px;
    max-width: 400px;
}

/* Right Side - Form */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: var(--background);
}

.login-card {
    width: 100%;
    max-width: 400px;
    animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--muted);
    font-size: 14px;
}

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

.form-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    color: white;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: rgba(238, 120, 109, 0.6);
    box-shadow: 0 0 0 3px var(--ring);
}

.btn-primary {
    width: 100%;
    background-color: var(--primary);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    box-shadow: 0 0 20px rgba(238, 120, 109, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Demo Roles */
.demo-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.demo-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-btn {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-btn:hover {
    border-color: rgba(238, 120, 109, 0.4);
    background-color: rgba(238, 120, 109, 0.05);
}

.demo-btn.active {
    background-color: rgba(238, 120, 109, 0.1);
    border-color: rgba(238, 120, 109, 0.6);
}

.demo-btn-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.demo-btn-subtitle {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.footer-text {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

.sso-footer {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}