:root {
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --grey-50: #f8fafc;
    --grey-200: #e5e7eb;
    --grey-500: #6b7280;
    --grey-700: #374151;
    --black: #0b0f14;
    --white: #ffffff;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--grey-50);
}

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

.left-panel {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 50px;
}

.left-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
}

.left-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 500px;
}

.left-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.left-content h1 strong {
    font-weight: 700;
}

.left-content span {
    color: var(--sky-400);
}

.left-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.right-panel {
    flex: 0.6; /* Narrower than left */
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(11, 15, 20, 0.08);
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-logo img {
    height: 76px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.login-card h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--black);
    text-align: center;
    font-weight: 400;
}

.login-error {
    margin-bottom: 15px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--black);
    background: var(--grey-50);
    border: 1px solid var(--grey-200);
    border-left: 4px solid var(--sky-500);
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--grey-700);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: var(--black);
}

.form-control:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--grey-500);
}

.form-options a {
    color: var(--grey-700);
    text-decoration: none;
}

.form-options a:hover {
    color: var(--sky-500);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--sky-500);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #0284c7;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .left-panel {
        display: none; /* Hide image on mobile for simpler login */
    }
    .right-panel {
        flex: 1;
        padding: 24px;
    }
    .login-card {
        padding: 28px;
    }
}
