
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --forest: #315b45;
    --forest-dark: #234432;
    --sage: #e4ede4;
    --cream: #f8f9f5;
    --text: #26372c;
    --muted: #89948b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* LEFT PANEL */

.cafe-panel {
    position: relative;
    width: 52%;
    min-height: 100vh;
    background:
        url('https://images.unsplash.com/photo-1445116572660-236099ec97a0?auto=format&fit=crop&w=1600&q=85')
        center center / cover no-repeat;
    overflow: hidden;
}

.cafe-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(25, 59, 41, 0.88),
        rgba(39, 76, 53, 0.58),
        rgba(25, 50, 35, 0.35)
    );
}

.cafe-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 55px 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
}

.brand i {
    font-size: 30px;
    color: #c8dfc7;
}

.brand-logo {
    display: block;
    width: 500px;
    max-width: 100%;
    height: auto;
}

.cafe-message {
    max-width: 480px;
    margin-top: -30px;
}

.welcome-label {
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 600;
    color: #d5e5d2;
}

.cafe-message h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.15;
    margin: 22px 0;
}

.cafe-message p {
    max-width: 390px;
    font-size: 15px;
    line-height: 1.9;
    color: #e3eae2;
}

.cafe-footer {
    font-size: 13px;
    color: #e1eadf;
}

.cafe-footer i {
    margin-right: 8px;
    color: #c8dfc7;
}

/* RIGHT PANEL */

.form-panel {
    width: 48%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 35px;
    background: #fff;
}

.login-card {
    width: 100%;
    max-width: 410px;
}

.mobile-brand {
    display: none;
}

.form-heading {
    margin-bottom: 42px;
}

.form-subtitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--forest);
}

.form-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 600;
    margin-top: 17px;
    margin-bottom: 10px;
    color: var(--text);
}

.form-heading p {
    font-size: 14px;
    color: var(--muted);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #394c3e;
    margin-bottom: 9px;
}

.custom-input {
    height: 53px;
    border: 1px solid #e2e8e0;
    border-radius: 9px;
    overflow: hidden;
    transition: 0.2s ease;
}

.custom-input:focus-within {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(49, 91, 69, 0.08);
}

.custom-input .input-group-text {
    border: none;
    background: #f8faf7;
    color: #718775;
    padding-left: 16px;
    padding-right: 12px;
}

.custom-input .form-control {
    border: none;
    box-shadow: none;
    font-size: 13px;
    background: transparent;
}

.custom-input .form-control::placeholder {
    color: #aab3aa;
}

.password-toggle {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--forest);
    border-color: var(--forest);
}

.form-check-label {
    font-size: 12px;
    color: #7c897e;
}

.login-button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 9px;
    background: var(--forest);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s ease;
}

.login-button:hover {
    background: var(--forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(49, 91, 69, 0.18);
}

.login-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 65px;
    font-size: 10px;
    color: #a2aaa1;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .cafe-panel {
        width: 45%;
    }

    .form-panel {
        width: 55%;
    }

    .cafe-content {
        padding: 40px 30px;
    }
}

@media (max-width: 650px) {
    .login-container {
        display: block;
    }

    .cafe-panel {
        display: none;
    }

    .form-panel {
        width: 100%;
        min-height: 100vh;
        padding: 35px 25px;
    }

    .mobile-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 65px;
        color: var(--forest);
        font-size: 20px;
        font-weight: 700;
    }

    .mobile-brand i {
        font-size: 27px;
    }

    .form-heading h2 {
        font-size: 34px;
    }

    .login-bottom {
        margin-top: 50px;
        flex-wrap: wrap;
    }
}
