﻿* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background: #f4f6f9;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 1100px;
    height: 620px;
    background: #fff;
    border-radius: 18px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* LEFT */
.login-left {
    width: 50%;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Banner handling for 2880x3552 image */
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* KEY: keeps proportions */
    object-position: center;
}

.brand-box {
    padding: 30px;
}

.brand-logo {
    width: 260px;
    margin-bottom: 15px;
}

.brand-box h3 {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* RIGHT */
.login-right {
    width: 50%;
    padding: 60px;
}

    .login-right h2 {
        margin: 0;
        font-size: 32px;
    }

.subtitle {
    color: #777;
    margin-bottom: 30px;
}

label {
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group input {
        width: 100%;
        padding: 12px 40px 12px 12px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

.icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.forgot {
    font-size: 13px;
    color: #1a73e8;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.captcha-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

    .captcha-box img {
        height: 45px;
    }

    .captcha-box input {
        flex: 1;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

    .captcha-box button {
        border-radius: 8px;
        border: none;
        padding: 0 16px;
        background: #eee;
    }

.error {
    color: red;
    margin-bottom: 10px;
}

.btn-login {
    width: 100%;
    background: #005ec8;
    border: none;
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.cms-wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    background: #ffffff;
    border-right: 1px solid #eee;
    transition: width 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
}

    /* Expanded / Collapsed sizes */
    .sidebar.expanded {
        width: 240px;
    }

    .sidebar.collapsed {
        width: 80px;
    }

/* Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.sidebar-logo {
    height: 42px;
}

.toggle-btn {
    border: none;
    background: #f5f7fb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

/* MENU */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

    .sidebar-menu li a {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        color: #333;
        text-decoration: none;
        gap: 14px;
        border-radius: 10px;
        margin: 4px 12px;
    }

        .sidebar-menu li.active a,
        .sidebar-menu li a:hover {
            background: #eaf2ff;
            color: #0d6efd;
        }

/* ICON */
.sidebar i {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

/* TEXT */
.menu-text {
    transition: opacity 0.2s ease;
}

/* HIDE TEXT WHEN COLLAPSED */
.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* MAIN CONTENT */
#content {
    flex-grow: 1;
    padding: 24px;
    background: #f8f9fb;
}


.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

#captchaImg {
    height: 50px;
    min-width: 140px;
    /* box look */
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    /* depth */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    /* clarity */
    padding: 6px 10px;
}

.captcha-box input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    font-size: 14px;
}

.captcha-box button {
    height: 42px;
    width: 42px;
    border-radius: 6px;
    border: 1px solid #d0d5dd;
    background: #f9fafb;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

    .captcha-box button:hover {
        background: #eef2f6;
        transform: rotate(90deg);
    }

.input-icon {
    position: relative;
}

    .input-icon input {
        width: 100%;
        padding-right: 42px;
    }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #005ec8;
    cursor: pointer;
}

    .toggle-password:hover {
        color: #0d6efd;
    }
