/* GESFOOD Auth Login — brand palette · mobile-first */
:root {
    --al-navy: #004a8d;
    --al-navy-deep: #003366;
    --al-navy-soft: #e8f1f8;
    --al-orange: #f39200;
    --al-orange-hot: #e07e00;
    --al-cyan: #7ec9f5;
    --al-bg: #f4f7fb;
    --al-surface: #ffffff;
    --al-text: #0c2a45;
    --al-muted: #5a738a;
    --al-border: rgba(0, 74, 141, 0.14);
    --al-danger: #c62828;
    --al-danger-bg: #fdecea;
    --al-radius: 16px;
    --al-radius-sm: 12px;
    --al-shadow: 0 12px 40px rgba(0, 74, 141, 0.1);
    --al-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --al-safe-b: env(safe-area-inset-bottom, 0px);
    --al-safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--al-font);
    background: var(--al-bg);
    color: var(--al-text);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body.al-body {
    min-height: 100vh;
    min-height: 100dvh;
}

#auth-login-app {
    min-height: 100vh;
    min-height: 100dvh;
}

.al-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    padding: calc(20px + var(--al-safe-t)) 20px calc(24px + var(--al-safe-b));
}

.al-page__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.al-page__glow--1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    background: rgba(243, 146, 0, 0.22);
}

.al-page__glow--2 {
    width: 220px;
    height: 220px;
    bottom: 10%;
    left: -80px;
    background: rgba(126, 201, 245, 0.28);
}

.al-page__glow--3 {
    width: 160px;
    height: 160px;
    top: 42%;
    right: -40px;
    background: rgba(0, 74, 141, 0.1);
}

.al-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    gap: 28px;
}

.al-brand {
    text-align: center;
    animation: alFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.al-brand__logo {
    height: 88px;
    width: auto;
    max-width: 220px;
    display: block;
    margin: 0 auto 12px;
    object-fit: contain;
}

.al-brand__tag {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--al-navy);
    opacity: 0.75;
}

.al-panel {
    background: var(--al-surface);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius);
    padding: 24px 20px;
    box-shadow: var(--al-shadow);
    animation: alFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.al-panel__title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--al-navy);
}

.al-panel__sub {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--al-muted);
    line-height: 1.45;
}

.al-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--al-radius-sm);
    background: var(--al-danger-bg);
    color: var(--al-danger);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}

.al-alert i {
    margin-top: 1px;
    flex-shrink: 0;
}

.al-alert--warn {
    background: #fff6e8;
    color: #9a5b00;
}

.al-field {
    margin-bottom: 14px;
}

.al-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--al-navy);
    margin-bottom: 6px;
}

.al-input-wrap {
    position: relative;
}

.al-input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 16px;
    border: 1.5px solid var(--al-border);
    border-radius: var(--al-radius-sm);
    background: #fafcfe;
    color: var(--al-text);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.al-input::placeholder {
    color: #93a6b8;
}

.al-input:hover {
    border-color: rgba(0, 74, 141, 0.28);
}

.al-input:focus {
    border-color: var(--al-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 74, 141, 0.12);
}

.al-input-wrap__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--al-muted);
    font-size: 16px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    line-height: 1;
}

.al-input-wrap__icon:focus-visible {
    outline: 2px solid var(--al-cyan);
    outline-offset: 2px;
    border-radius: 6px;
}

.al-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 20px;
    flex-wrap: wrap;
}

.al-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--al-muted);
    cursor: pointer;
    user-select: none;
}

.al-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--al-orange);
    cursor: pointer;
}

.al-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--al-navy);
    text-decoration: none;
}

.al-link:hover {
    color: var(--al-orange);
    text-decoration: underline;
}

.al-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--al-radius-sm);
    background: var(--al-orange);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(243, 146, 0, 0.35);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.al-btn:hover:not(:disabled) {
    background: var(--al-orange-hot);
    box-shadow: 0 10px 24px rgba(243, 146, 0, 0.42);
}

.al-btn:active:not(:disabled) {
    transform: scale(0.985);
}

.al-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.al-btn:focus-visible {
    outline: 3px solid var(--al-cyan);
    outline-offset: 2px;
}

.al-btn__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: alSpin 0.7s linear infinite;
}

.al-features {
    animation: alFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.al-features__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--al-navy-soft);
    color: var(--al-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.al-features__badge i {
    color: var(--al-orange);
}

.al-features__card {
    background: linear-gradient(145deg, var(--al-navy) 0%, var(--al-navy-deep) 100%);
    border-radius: var(--al-radius);
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 168px;
}

.al-features__card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    right: -40px;
    bottom: -50px;
    background: rgba(243, 146, 0, 0.22);
    pointer-events: none;
}

.al-features__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: var(--al-cyan);
    font-size: 20px;
    margin-bottom: 14px;
}

.al-features__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.al-features__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    position: relative;
    z-index: 1;
}

.al-features__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 12px;
}

.al-features__dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.al-features__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(0, 74, 141, 0.22);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}

.al-features__dot.is-active {
    width: 22px;
    border-radius: 4px;
    background: var(--al-orange);
}

.al-features__arrows {
    display: flex;
    gap: 8px;
}

.al-features__arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--al-border);
    background: var(--al-surface);
    color: var(--al-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.al-features__arrow:hover {
    background: var(--al-navy-soft);
    border-color: rgba(0, 74, 141, 0.28);
}

.al-features__progress {
    margin-top: 10px;
    height: 3px;
    background: rgba(0, 74, 141, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.al-features__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--al-orange), var(--al-cyan));
    border-radius: 3px;
    transition: width 0.08s linear;
}

.al-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--al-muted);
    animation: alFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.al-slide-enter-active,
.al-slide-leave-active {
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.al-slide-enter-from,
.al-slide-leave-to {
    opacity: 0;
    transform: translateX(12px);
}

.al-slide-leave-active {
    position: absolute;
    inset: 0;
}

.al-features__track {
    position: relative;
    min-height: 168px;
}

@keyframes alFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes alSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Tablet+ : wider form, features still below */
@media (min-width: 640px) {
    .al-page {
        padding: calc(28px + var(--al-safe-t)) 32px calc(32px + var(--al-safe-b));
    }

    .al-panel {
        padding: 28px 28px;
    }

    .al-brand__logo {
        height: 100px;
    }
}

/* Desktop split: form + features side by side */
@media (min-width: 960px) {
    .al-page {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 0;
        padding: 0;
        overflow: hidden;
    }

    .al-page__glow {
        display: none;
    }

    .al-aside {
        grid-column: 1;
        grid-row: 1;
    }

    .al-main {
        grid-column: 2;
        grid-row: 1;
        max-width: none;
        margin: 0;
        padding: 48px 56px;
        justify-content: center;
        gap: 0;
    }

    .al-main__form-col {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .al-features {
        display: none;
    }

    .al-aside {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 56px;
        background: linear-gradient(155deg, var(--al-navy) 0%, var(--al-navy-deep) 55%, #00264d 100%);
        color: #fff;
        position: relative;
        overflow: hidden;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .al-aside::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        top: -120px;
        right: -100px;
        background: rgba(243, 146, 0, 0.2);
        filter: blur(10px);
    }

    .al-aside::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        bottom: -80px;
        left: -60px;
        background: rgba(126, 201, 245, 0.18);
    }

    .al-aside__inner {
        position: relative;
        z-index: 1;
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }

    .al-aside .al-features__badge {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.85);
    }

    .al-aside .al-features__card {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.14);
        min-height: 220px;
        padding: 28px;
    }

    .al-aside .al-features__track {
        min-height: 220px;
    }

    .al-aside .al-features__title {
        font-size: 28px;
    }

    .al-aside .al-features__desc {
        font-size: 15px;
        max-width: 400px;
    }

    .al-aside .al-features__dot {
        background: rgba(255, 255, 255, 0.25);
    }

    .al-aside .al-features__dot.is-active {
        background: var(--al-orange);
    }

    .al-aside .al-features__arrow {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.16);
        color: #fff;
    }

    .al-aside .al-features__arrow:hover {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.28);
    }

    .al-aside .al-features__progress {
        background: rgba(255, 255, 255, 0.12);
    }

    .al-aside__foot {
        margin-top: 36px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.55);
        line-height: 1.5;
    }

    .al-footer {
        display: none;
    }
}

@media (max-width: 959px) {
    .al-aside {
        display: none;
    }
}
