:root {
    --primary-color: #c81919;
    --dark-bg: #1e2025;
    --sidebar-bg: #2d323e;
    --light-bg: #f4f7fa;
    --card-bg: #ffffff;
    --text-color-dark: #333;
    --text-color-light: #e0e0e0;
    --border-color: #e0e0e0;
    --shadow: 0 4px 8px rgba(0,0,0,0.05);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* This new wrapper will hold the login box and the image */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Space between the box and the image */
}

.login-box {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    flex-shrink: 0; /* Prevents the box from shrinking */
}

/* Container for the image, hidden on small screens */
.frieda-chat-img {
    display: none; 
}

.frieda-chat-img img {
    max-width: 250px;
    height: auto;
}

/* Media query to show the image on larger screens (e.g., tablets and desktops) */
@media (min-width: 992px) {
    .frieda-chat-img {
        display: block;
    }
}

.login-header .logo {
    width: 250px;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.login-header p {
    color: #777;
    margin-bottom: 30px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 25, 25, 0.1);
}

.btn-login {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #a31414;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: -10px;
}

.login-links {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

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

.login-links a:hover {
    text-decoration: underline;
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #888;
}