@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --primary: #FF6B35;
    --primary-dark: #e85d2a;
    --secondary: #2D3748;
    --text-body: #718096;
    --light-bg: #F8F9FA;
    --white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    height: 100vh;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Left Side - Form */
.login-left {
    width: 45%;
    padding: 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
    z-index: 10;
}

/* Right Side - Illustration */
.login-right {
    width: 55%;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem;
}

/* Decorative circle behind illustration */
.login-right::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.logo-container {
    margin-bottom: 3rem;
    text-align: center;
}

.logo-container img {
    height: 45px;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--text-body);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    height: 55px;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FDFDFD;
    font-size: 1rem;
    width: 100%;
    transition: all 0.2s;
    color: var(--secondary);
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #CBD5E0;
}

.btn-primary {
    background: var(--primary);
    border: none;
    height: 55px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.3);
}

.actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-body);
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #CBD5E0;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.custom-checkbox input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.custom-checkbox input:checked+.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Pro';
    font-size: 10px;
}

.forgot-link {
    color: #FF6B35;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 1;
    text-decoration: none;
}

.register-text {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-body);
    font-size: 0.95rem;
}

.register-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

.illustration-img {
    max-width: 80%;
    max-height: 60vh;
    position: relative;
    z-index: 1;
}

.tip-card {
    position: absolute;
    top: 40px;
    right: 40px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 15px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .login-left {
        width: 100%;
        padding: 3rem;
    }

    .login-right {
        display: none;
    }

    body {
        overflow: auto;
        height: auto;
    }
}

/* Foodiz premium authentication layer */
:root {
    --primary: #ff6b35;
    --primary-dark: #e45523;
    --secondary: #1b1716;
    --text-body: #756e68;
    --light-bg: #f7f2eb;
}

body.login-page { min-height: 100vh; height: auto; overflow-x: hidden; background: #f7f2eb; font-family: 'DM Sans', sans-serif; }
.login-wrapper { min-height: 100vh; height: auto; background: #f7f2eb; }
.login-left { width: 48%; min-height: 100vh; padding: 60px clamp(35px, 7vw, 110px); background: #f7f2eb; }
.login-right { position: relative; width: 52%; min-height: 100vh; overflow: hidden; background: linear-gradient(135deg, #211a17, #171311); }
.login-right::before { width: 520px; height: 520px; background: rgba(255,107,53,.17); filter: blur(12px); }
.login-right::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.logo-container { margin-bottom: 72px; text-align: left; }
.logo-container img { width: 150px; height: auto; }
.login-left h1 { margin-bottom: 10px; color: var(--secondary); font-family: 'Manrope', sans-serif; font-size: clamp(2.3rem, 4vw, 3.5rem); letter-spacing: -.06em; text-align: left; }
.login-left .subtitle { margin-bottom: 38px; color: var(--text-body); text-align: left; }
.form-label { color: var(--secondary); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.form-control { height: 56px; border: 1px solid rgba(27,23,22,.12); border-radius: 14px; background: rgba(255,255,255,.55); color: var(--secondary); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,107,53,.12); }
.btn-primary { height: 56px; border-radius: 14px; background: var(--primary); box-shadow: 0 12px 25px rgba(255,107,53,.23); }
.btn-primary:hover { background: var(--primary-dark); }
.actions-row { color: var(--text-body); }
.forgot-link, .register-text a { color: var(--primary); }
.custom-checkbox input:checked + .checkmark { background: var(--primary); border-color: var(--primary); }
.tip-card { top: 48px; right: 48px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; color: #fff; background: rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.2); backdrop-filter: blur(18px); }
.tip-card .text-muted { color: rgba(255,255,255,.55) !important; }
.tip-card span { color: #fff !important; }
.tip-icon { color: #fff; background: var(--primary); }
.illustration-img { position: absolute; right: 8%; bottom: -5%; z-index: 1; width: min(72%, 510px); max-width: none; max-height: 78vh; object-fit: contain; object-position: bottom; filter: drop-shadow(0 35px 25px rgba(0,0,0,.34)); }
.login-right .text-center { position: absolute; bottom: 42px; left: 50%; z-index: 2; width: 100%; max-width: 360px; transform: translateX(-50%); }
.login-right .text-center h3 { color: #fff !important; font-family: 'Manrope', sans-serif; }
.login-right .text-center p { color: rgba(255,255,255,.55) !important; }

/* Password recovery pages share the same visual system. */
.login-page .login-header { padding: 26px 0 0; }
.login-page .login-header img { width: 150px; }
.login-page > .login { min-height: calc(100vh - 140px); padding: 65px 0 30px; }
.login-page > .login .container { max-width: 980px; }
.login-page > .login h2 { color: var(--secondary); font-family: 'Manrope', sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.06em; }
.login-page > .login p { color: var(--text-body); }
.login-page > .login .col-lg-7 img { max-height: 430px; opacity: .88; }
.login-page > .login .form-login { padding: 20px 0; }
.login-page .login-input-container { border: 1px solid rgba(27,23,22,.12); border-radius: 14px !important; background: rgba(255,255,255,.55) !important; }
.login-page .login-icon i { color: var(--primary); }
.login-page .login-input input { height: 38px; color: var(--secondary); }
.login-page .login-actions { margin-top: 20px; }
.login-page .login-actions .draw-border { min-height: 50px; border: 0; border-radius: 14px; color: #fff; background: var(--primary); box-shadow: 0 12px 25px rgba(255,107,53,.2); }
.login-page .login-actions .draw-border:hover { color: #fff; background: var(--primary-dark); }
.login-page .footer { margin-top: 0 !important; }

@media (max-width: 992px) {
    .login-left { width: 100%; min-height: 100vh; padding: 38px 24px; }
    .logo-container { margin-bottom: 55px; }
    .login-left h1, .login-left .subtitle { text-align: center; }
}

/* Login experience: editorial feature slider + focused access panel. */
body.auth-login-page { min-height: 100svh; height: auto; overflow-x: hidden; overflow-y: auto; background: #f7f2eb; font-family: 'DM Sans', sans-serif; }
.auth-login-page .login-wrapper { display: flex; min-height: 100svh; height: auto; width: 100%; background: #f7f2eb; }
.auth-login-page .login-features { order: 1; flex: 0 0 52%; width: 52%; min-height: 100svh; align-items: stretch; justify-content: flex-start; padding: 36px clamp(28px, 4.5vw, 72px); overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 42%, rgba(255,107,53,.2), transparent 33%), linear-gradient(132deg, #1b1614 0%, #241b18 58%, #171210 100%); }
.auth-login-page .login-form-panel { order: 2; flex: 1 1 48%; width: 48%; min-height: 100svh; align-items: flex-start; padding: 38px clamp(26px, 4.5vw, 72px); color: var(--secondary); background: #f7f2eb; }
.login-features::before { z-index: 0; width: 520px; height: 520px; background: rgba(255,107,53,.14); filter: blur(16px); }
.login-features::after { z-index: 0; right: -150px; bottom: -190px; width: 500px; height: 500px; border-color: rgba(255,255,255,.12); }
.auth-noise { position: absolute; inset: 0; z-index: 0; opacity: .13; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='auth-noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23auth-noise)' opacity='.35'/%3E%3C/svg%3E"); }
.auth-glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.auth-glow-one { top: 25%; right: -14%; width: 330px; height: 330px; border: 1px solid rgba(255,154,113,.2); }
.auth-glow-two { bottom: -120px; left: 25%; width: 280px; height: 280px; background: rgba(255,107,53,.13); filter: blur(55px); }
.login-features > *:not(.auth-noise):not(.auth-glow) { position: relative; z-index: 2; }
.feature-brand a { position: relative; display: inline-flex; align-items: flex-start; color: #fff; text-decoration: none; }
.feature-brand img { display: block; width: 136px; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.feature-brand sup, .logo-container sup { position: relative; top: 1px; margin-left: 4px; color: #ff9a71; font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800; }
.feature-brand > span { display: block; margin-top: 13px; color: rgba(255,255,255,.48); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.feature-slider { max-width: 470px; margin-top: 64px; }
.feature-slide[hidden] { display: none; }
.feature-slide.is-active { animation: featureSlideIn .55s cubic-bezier(.2,.8,.2,1) both; }
.feature-kicker { display: inline-flex; align-items: center; gap: 9px; color: #ff9a71; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.feature-kicker i { display: block; width: 22px; height: 1px; background: currentColor; }
.feature-slide h1 { max-width: 470px; margin: 16px 0 16px; color: #fff; font-family: 'Manrope', sans-serif; font-size: clamp(2.5rem, 4.4vw, 4.35rem); font-weight: 800; letter-spacing: -.07em; line-height: .96; text-align: left; }
.feature-slide h1 em { color: var(--primary); font-style: normal; }
.feature-slide p { max-width: 360px; margin: 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.55; }
.feature-proof { display: inline-flex; align-items: center; gap: 12px; margin-top: 21px; padding: 9px 14px 9px 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.08); box-shadow: 0 18px 35px rgba(0,0,0,.16); backdrop-filter: blur(12px); }
.feature-proof > i { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #fff; background: var(--primary); }
.feature-proof strong, .feature-proof small { display: block; }
.feature-proof strong { color: #fff; font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1; }
.feature-proof small { margin-top: 4px; color: rgba(255,255,255,.46); font-size: 10px; }
.feature-visual { position: absolute; right: 1%; bottom: -30px; z-index: 1; width: min(46%, 410px); height: 58%; pointer-events: none; }
.feature-visual-ring { position: absolute; top: 8%; right: 0; width: 84%; height: 84%; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; transform: rotate(-18deg); }
.login-features .illustration-img { position: absolute; right: -4%; bottom: 0; z-index: 2; width: 88%; max-width: none; max-height: none; filter: drop-shadow(0 35px 25px rgba(0,0,0,.42)); }
.feature-metric { position: absolute; right: 4%; bottom: 22%; z-index: 3; display: grid; grid-template-columns: 33px auto; grid-template-rows: auto auto; column-gap: 9px; padding: 11px 14px 11px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(0,0,0,.2); backdrop-filter: blur(15px); transform: rotate(3deg); }
.feature-metric > span { display: grid; width: 33px; height: 33px; grid-row: span 2; place-items: center; border-radius: 10px; color: #20351e; background: #a9d6a2; }
.feature-metric small { color: rgba(255,255,255,.5); font-size: 9px; }
.feature-metric strong { color: #fff; font-family: 'Manrope', sans-serif; font-size: 15px; line-height: 1.1; }
.feature-controls { display: flex; gap: 7px; margin-top: auto; padding-top: 36px; }
.feature-controls button { width: 32px; height: 4px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.26); transition: width .25s ease, background .25s ease; }
.feature-controls button.is-active { width: 58px; background: var(--primary); }
.feature-controls button:focus { outline: 3px solid rgba(255,154,113,.45); outline-offset: 5px; }
@keyframes featureSlideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.login-form-panel .logo-container { margin-bottom: 39px; text-align: left; }
.login-form-panel .logo-container a { display: inline-flex; align-items: flex-start; text-decoration: none; }
.login-form-panel .logo-container img { width: 140px; height: auto; }
.form-intro { margin-bottom: 24px; }
.form-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 17px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.form-kicker i { width: 22px; height: 2px; background: currentColor; }
.form-intro h2 { margin: 0; color: var(--secondary); font-family: 'Manrope', sans-serif; font-size: clamp(2.1rem, 3.5vw, 3.15rem); font-weight: 800; letter-spacing: -.07em; line-height: .98; }
.form-intro h2 em { color: var(--primary); font-style: normal; }
.login-form-panel .subtitle { margin: 11px 0 0; color: var(--text-body); text-align: left; }
.login-form-panel .form-login { width: 100%; max-width: 440px; }
.login-form-panel .form-group { margin-bottom: 14px; }
.login-form-panel .form-control { height: 52px; background: rgba(255,255,255,.58); }
.login-form-panel .btn-primary { height: 52px; }
.login-form-panel .btn-primary { display: inline-flex; align-items: center; justify-content: center; }
.login-security { display: flex; align-items: center; gap: 7px; margin: 20px 0 0; color: rgba(117,110,104,.7); font-size: 11px; }
.login-security i { color: #58a05d; }

@media (max-width: 1180px) and (min-width: 993px) {
    .auth-login-page .login-features { padding-right: 38px; padding-left: 48px; }
    .auth-login-page .login-form-panel { padding-right: 46px; padding-left: 46px; }
    .feature-visual { right: -12%; width: 53%; }
}

@media (max-width: 992px) {
    body.auth-login-page { overflow-y: auto; }
    .auth-login-page .login-wrapper { display: block; min-height: 0; }
    .auth-login-page .login-features { display: none; }
    .auth-login-page .login-form-panel { display: flex; width: 100%; min-height: 100svh; padding: 48px 24px 58px; }
    .login-form-panel .logo-container { margin-bottom: 42px; }
    .feature-brand img { width: 140px; }
    .feature-slider { max-width: 600px; margin-top: 64px; }
    .feature-slide h1 { font-size: clamp(2.8rem, 8vw, 4.5rem); }
    .feature-visual { right: -2%; bottom: -42px; width: 47%; height: 56%; }
    .feature-metric { right: 5%; bottom: 17%; }
}

@media (max-width: 575px) {
    .auth-login-page .login-features { min-height: 555px; height: 555px; }
    .feature-brand > span { font-size: 9px; }
    .feature-slider { margin-top: 56px; }
    .feature-slide h1 { max-width: 295px; margin-top: 17px; font-size: 2.75rem; }
    .feature-slide p { max-width: 270px; font-size: 14px; line-height: 1.5; }
    .feature-proof { margin-top: 20px; }
    .feature-visual { right: -8%; bottom: -64px; width: 53%; height: 245px; }
    .login-features .illustration-img { right: 0; width: auto; height: 100%; max-width: none; }
    .feature-metric { right: 8%; bottom: 12%; transform: scale(.8) rotate(3deg); transform-origin: right bottom; }
    .feature-controls { padding-top: 25px; }
    .auth-login-page .login-form-panel { padding-top: 44px; }
    .login-form-panel .logo-container { margin-bottom: 36px; }
    .form-intro h2 { font-size: 2.75rem; }
    .actions-row { gap: 13px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .feature-slide.is-active { animation: none; }
    .feature-controls button { transition: none; }
}
