/* BiteEase Login Page - Responsive desktop/tablet/mobile design */
:root {
    --be-dark: #17120d;
    --be-brown: #5f3614;
    --be-gold: #f2a51a;
    --be-cream: #fff7ea;
    --be-muted: #6b7280;
    --be-border: #e5e7eb;
    --be-danger-bg: #fff1f2;
    --be-danger: #be123c;
}

body.login-page {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    background:
        radial-gradient(circle at 12% 14%, rgba(242, 165, 26, 0.28), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(95, 54, 20, 0.16), transparent 34%),
        linear-gradient(135deg, #fffaf2 0%, #f6f7fb 48%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-wrapper {
    width: 100%;
    max-width: 1120px;
}

.login-card {
    width: 100%;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.18);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.login-info {
    position: relative;
    isolation: isolate;
    padding: 58px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(23, 18, 13, 0.94), rgba(95, 54, 20, 0.76)),
        linear-gradient(135deg, var(--be-dark), var(--be-brown));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
}

.login-info::before,
.login-info::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    z-index: -1;
}

.login-info::before {
    width: 260px;
    height: 260px;
    right: -96px;
    top: -70px;
    background: rgba(242, 165, 26, 0.22);
}

.login-info::after {
    width: 320px;
    height: 320px;
    left: -130px;
    bottom: -120px;
    background: rgba(255, 255, 255, 0.08);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--be-dark);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -1px;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}

.brand-lockup h1,
.login-copy h2 {
    color: #ffffff;
    margin: 0;
}

.brand-lockup h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -1.4px;
}

.brand-lockup p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.login-copy {
    max-width: 610px;
}

.login-copy h2 {
    font-size: clamp(34px, 4.3vw, 56px);
    line-height: 1.03;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.login-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
}

.role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-chips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}

.login-form-panel {
    padding: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.login-form-header h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -1px;
    color: #111827;
}

.login-form-header p {
    margin: 0 0 28px;
    color: var(--be-muted);
    line-height: 1.6;
}

.login-form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.login-form label {
    display: block;
    margin: 17px 0 8px;
    color: #111827;
    font-weight: 800;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    min-height: 54px;
    padding: 14px 15px;
    margin: 0;
    border: 1px solid var(--be-border);
    border-radius: 15px;
    background: #f9fafb;
    color: #111827;
    font-size: 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-form input:focus {
    border-color: var(--be-gold);
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(242, 165, 26, 0.18);
}

.login-form button {
    width: 100%;
    min-height: 56px;
    margin: 24px 0 0;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--be-dark), var(--be-brown));
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(95, 54, 20, 0.24);
    transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}

.login-form button:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(95, 54, 20, 0.3);
}

.login-form button:active {
    transform: translateY(0);
}

.login-error {
    background: var(--be-danger-bg) !important;
    color: var(--be-danger) !important;
    border: 1px solid rgba(190, 18, 60, 0.18);
    border-radius: 14px !important;
    padding: 13px 14px !important;
    margin-bottom: 14px !important;
    font-weight: 700;
}

.login-note {
    margin: 18px 0 0;
    color: var(--be-muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 920px) {
    body.login-page {
        padding: 20px;
        align-items: flex-start;
    }

    .login-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-info {
        min-height: 360px;
        padding: 42px;
    }

    .login-form-panel {
        padding: 42px;
    }
}

@media (max-width: 560px) {
    body.login-page {
        padding: 0;
        background: #ffffff;
    }

    .login-wrapper {
        max-width: none;
    }

    .login-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-info {
        min-height: auto;
        padding: 28px 22px;
        gap: 26px;
    }

    .brand-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 18px;
    }

    .brand-lockup h1 {
        font-size: 32px;
    }

    .brand-lockup p {
        font-size: 14px;
    }

    .login-copy h2 {
        font-size: 29px;
        letter-spacing: -1px;
    }

    .login-copy p {
        font-size: 15px;
        line-height: 1.65;
    }

    .role-chips span {
        padding: 8px 10px;
        font-size: 12px;
    }

    .login-form-panel {
        padding: 30px 22px 36px;
    }

    .login-form-header h2 {
        font-size: 30px;
    }

    .login-form input,
    .login-form button {
        min-height: 54px;
        font-size: 16px;
    }
}
