:root {
    --primary: #0c8791;
    --secondary: #14b8a6;
    --primary-dark: #0a6b73;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
}

/* Left Panel */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.auth-left h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.auth-left p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 400px;
    text-align: center;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

    .brand-icon img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.auth-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.auth-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    opacity: 0.9;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Right Panel */
.auth-right {
    width: 47%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 60px;
    background: #fff;
    overflow-y: auto;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.auth-header p {
    color: #6b7280;
    font-size: 15px;
}

/* Forms */
.form-floating {
    margin-bottom: 16px;
}

.form-floating .form-control {
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    padding: 16px;
    height: 56px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-floating .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 135, 145, 0.12);
}

.form-floating label {
    padding: 16px;
    color: #6b7280;
}

/* Buttons */
.btn-auth {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: #fff;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 135, 145, 0.3);
    color: white;
}

/* Links */
.auth-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.auth-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Remember row */
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Alert */
.alert-danger {
    border-radius: 12px;
    font-size: 14px;
    border: none;
    background: #fef2f2;
    color: #dc2626;
}

/* Demo credentials */
.demo-credentials {
    background: #eef2ff;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--primary-dark);
}

.demo-credentials strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Name row */
.name-row {
    display: flex;
    gap: 12px;
}

.name-row .form-floating {
    flex: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-left {
        display: none;
    }
    .auth-right {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
    body {
        justify-content: center;
        padding: 20px;
    }
}
