:root {
    --primary-color: #00A651;
    --hover-color: #008f45;
    --text-color: #3c4043;
    --secondary-text: #606266;
    --border-color: #dadce0;
    --error-color: #d93025;
    --font-family: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #fff;
    min-height: 100vh;
}

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

/* Left Section */
.left-section {
    flex: 1;
    background-image: url('login.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

/* Right Section */
.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #fff;
}

.login-wrapper {
    width: 100%;
    max-width: 448px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 24px;
}

.logo {
    height: 80px;
    width: auto;
}

.login-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a73e8; /* The screenshot shows a blue-ish text for this line */
    margin-bottom: 32px;
    text-align: center;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 18px 16px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: transparent;
}

.input-group input:focus {
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 17px 15px; /* Adjust for thicker border */
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 0 4px;
    color: var(--secondary-text);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s;
}

/* Floating behavior */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: var(--primary-color);
    transform: translateY(-50%);
}

.input-group input:not(:focus):not(:placeholder-shown) + label {
    color: var(--secondary-text);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    width: 24px;
    height: 24px;
    fill: #bdc1c6;
    transition: fill 0.2s;
}

.password-toggle:hover .eye-icon {
    fill: var(--secondary-text);
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--secondary-text);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 2px;
    margin-right: 10px;
    position: relative;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--secondary-text);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background-color: var(--hover-color);
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

.login-btn:active {
    box-shadow: 0 1px 2px rgba(60,64,67,0.3);
}

/* Chat Bubble Icons */
.chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-bubble:hover {
    transform: scale(1.05);
}

.chat-bubble svg {
    width: 28px;
    height: 28px;
}

/* Responsive */
@media (max-width: 960px) {
    .left-section {
        display: none;
    }
    .right-section {
        flex: 1;
        width: 100%;
        padding: 24px;
    }
    .logo {
        height: 50px;
    }
    .login-wrapper {
        max-width: 100%;
    }
}
