.restoran-auth-showcase {
    --scene-back-x: 0px;
    --scene-back-y: 0px;
    --scene-mid-x: 0px;
    --scene-mid-y: 0px;
    --scene-copy-x: 0px;
    --scene-copy-y: 0px;
    overflow: hidden;
    background: #07111f;
    perspective: 1100px;
}

.restoran-auth-showcase::before {
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(3, 13, 30, 0.67), transparent 57%, rgba(3, 13, 30, 0.18)),
        linear-gradient(180deg, rgba(2, 9, 22, 0.05) 0%, rgba(2, 9, 22, 0.18) 48%, rgba(2, 9, 22, 0.88) 100%);
    mix-blend-mode: normal;
}

.restoran-auth-showcase::after {
    inset: auto 8% 8% auto;
    z-index: 3;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(108, 166, 255, 0.12);
    border-radius: 50%;
    background: transparent;
    box-shadow:
        0 0 0 34px rgba(105, 157, 255, 0.025),
        0 0 0 68px rgba(105, 157, 255, 0.018);
    animation: restoran-orbit-breathe 7s ease-in-out infinite;
}

.restoran-scene {
    position: absolute;
    inset: -4%;
    z-index: 0;
    overflow: hidden;
    transform-style: preserve-3d;
}

.restoran-scene-image,
.restoran-scene-atmosphere,
.restoran-scene-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
}

.restoran-scene-image {
    inset: -3%;
    background-image: url("../../../img/auth/restoran-terminal-giris.png");
    background-position: center;
    background-size: cover;
    filter: saturate(0.9) contrast(1.04);
    transform: translate3d(var(--scene-back-x), var(--scene-back-y), -28px) scale(1.09);
    transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.restoran-scene-atmosphere {
    inset: 8% -15% auto auto;
    width: 72%;
    height: 62%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 179, 99, 0.2) 0%, rgba(160, 107, 41, 0.08) 30%, transparent 69%);
    filter: blur(12px);
    opacity: 0.8;
    transform: translate3d(var(--scene-mid-x), var(--scene-mid-y), 44px);
    transition: transform 170ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.restoran-scene-grid {
    inset: auto -12% -24%;
    height: 48%;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(104, 158, 255, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 158, 255, 0.22) 1px, transparent 1px);
    background-size: 54px 34px;
    mask-image: linear-gradient(180deg, transparent, #000 42%, transparent 94%);
    transform: translate3d(var(--scene-mid-x), var(--scene-mid-y), 60px) perspective(520px) rotateX(64deg);
    transform-origin: center bottom;
    transition: transform 190ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.restoran-scene-light {
    position: absolute;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 211, 143, 0.9);
    box-shadow:
        0 0 18px 7px rgba(255, 186, 82, 0.38),
        0 0 58px 26px rgba(255, 170, 60, 0.12);
    opacity: 0.62;
    pointer-events: none;
    transform: translate3d(var(--scene-mid-x), var(--scene-mid-y), 90px);
    animation: restoran-light-breathe 4.8s ease-in-out infinite;
}

.restoran-scene-light.light-primary {
    top: 13%;
    left: 78%;
}

.restoran-scene-light.light-secondary {
    top: 30%;
    left: 61%;
    width: 7px;
    height: 7px;
    animation-delay: -1.6s;
}

.restoran-scene-light.light-tertiary {
    top: 45%;
    left: 56%;
    width: 5px;
    height: 5px;
    animation-delay: -3.1s;
}

.restoran-auth-showcase .showcase-content {
    z-index: 4;
    transform: translate3d(var(--scene-copy-x), var(--scene-copy-y), 95px);
    transform-style: preserve-3d;
    transition: transform 190ms cubic-bezier(0.2, 0.7, 0.2, 1);
    animation: restoran-copy-enter 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.restoran-auth-showcase .showcase-content h1,
.restoran-auth-showcase .showcase-content p {
    transform: translateZ(18px);
}

.restoran-auth-showcase .showcase-content h1 {
    margin-bottom: 18px;
}

.restoran-auth-showcase .showcase-content h1 span {
    background: linear-gradient(90deg, #78aaff, #c1d8ff 62%, #78aaff);
    background-size: 180% 100%;
    background-clip: text;
    color: transparent;
    animation: restoran-title-shine 7s ease-in-out infinite;
}

.auth-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.92), rgba(244, 246, 250, 0.72) 34%, transparent 68%),
        linear-gradient(145deg, #f4f6f9, #e9edf3);
    perspective: 1200px;
}

.auth-panel::before {
    content: "";
    position: absolute;
    top: -28%;
    right: -24%;
    width: 64%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 116, 231, 0.12), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
    animation: restoran-panel-glow 10s ease-in-out infinite alternate;
}

.restoran-panel-orbit {
    position: absolute;
    border: 1px solid rgba(74, 112, 181, 0.09);
    border-radius: 50%;
    pointer-events: none;
    transform: rotateX(68deg) rotateZ(-18deg);
}

.restoran-panel-orbit-one {
    right: -12%;
    bottom: 3%;
    width: 46%;
    aspect-ratio: 1;
}

.restoran-panel-orbit-two {
    right: -5%;
    bottom: 11%;
    width: 31%;
    aspect-ratio: 1;
}

.restoran-auth-card {
    --card-rotate-x: 0deg;
    --card-rotate-y: 0deg;
    --card-glow-x: 50%;
    --card-glow-y: 34%;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
    transform-style: preserve-3d;
    transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
    isolation: isolate;
}

.restoran-auth-card::before {
    content: "";
    position: absolute;
    inset: -32px -34px -35px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 24px;
    background:
        radial-gradient(circle at var(--card-glow-x) var(--card-glow-y), rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.58) 35%, rgba(245, 248, 253, 0.48) 74%),
        rgba(255, 255, 255, 0.54);
    box-shadow:
        0 30px 70px rgba(29, 48, 85, 0.16),
        0 8px 20px rgba(37, 75, 139, 0.08),
        inset 0 1px 0 #ffffff;
    backdrop-filter: blur(22px) saturate(1.08);
    transform: translateZ(-18px);
}

.restoran-auth-card::after {
    content: "";
    position: absolute;
    inset: -31px -33px -34px;
    z-index: -1;
    border-radius: 23px;
    background: linear-gradient(120deg, rgba(82, 139, 247, 0.22), transparent 24%, transparent 74%, rgba(255, 255, 255, 0.8));
    opacity: 0.36;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
    transform: translateZ(-16px);
}

.restoran-auth-card .brand-lockup,
.restoran-auth-card .auth-heading,
.restoran-auth-card .message-box,
.restoran-auth-card .login-form,
.restoran-auth-card .auth-links {
    transform: translateZ(24px);
}

.restoran-auth-card .brand-lockup {
    transform: translateZ(34px);
}

.restoran-brand-mark svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.restoran-brand-mark {
    animation: restoran-mark-float 5s ease-in-out infinite;
}

.restoran-auth-card .input-line {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.restoran-auth-card .input-line:focus-within {
    transform: translateZ(10px) translateY(-1px);
}

.restoran-auth-card .restoran-email-line input {
    padding-right: 4px;
    font-size: 15px;
}

.restoran-auth-card .login-submit {
    position: relative;
    overflow: hidden;
    transform: translateZ(32px);
    transition: transform 140ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.restoran-auth-card .login-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.38) 48%, transparent 68%);
    transform: translateX(-130%);
    transition: transform 520ms ease;
}

.restoran-auth-card .login-submit:hover::before,
.restoran-auth-card .login-submit:focus-visible::before {
    transform: translateX(130%);
}

.restoran-auth-card .login-submit:hover,
.restoran-auth-card .login-submit:focus-visible {
    box-shadow: 0 18px 28px rgba(37, 99, 235, 0.3);
    transform: translateZ(38px) translateY(-2px);
}

.restoran-auth-card .login-submit:active {
    box-shadow: 0 7px 14px rgba(37, 99, 235, 0.24);
    transform: translateZ(18px) translateY(1px) scale(0.992);
}

.message-warning {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
}

.restoran-auth-links {
    gap: 7px;
}

@keyframes restoran-copy-enter {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes restoran-light-breathe {
    0%, 100% { opacity: 0.46; filter: brightness(0.86); }
    50% { opacity: 0.78; filter: brightness(1.16); }
}

@keyframes restoran-title-shine {
    0%, 20% { background-position: 100% 0; }
    55%, 100% { background-position: 0 0; }
}

@keyframes restoran-mark-float {
    0%, 100% { transform: translateZ(0) translateY(0); }
    50% { transform: translateZ(8px) translateY(-3px); }
}

@keyframes restoran-orbit-breathe {
    0%, 100% { opacity: 0.46; transform: scale(0.98); }
    50% { opacity: 0.72; transform: scale(1.04); }
}

@keyframes restoran-panel-glow {
    from { transform: translate3d(-4%, 0, 0) scale(0.96); opacity: 0.56; }
    to { transform: translate3d(4%, 6%, 0) scale(1.08); opacity: 0.88; }
}

@media (max-width: 900px) {
    .restoran-auth-showcase::after,
    .restoran-scene-grid,
    .restoran-panel-orbit {
        display: none;
    }

    .restoran-auth-card {
        transform: none !important;
    }

    .restoran-auth-card::before {
        inset: -22px -24px -25px;
        border-radius: 20px;
    }

    .restoran-auth-card::after {
        inset: -21px -23px -24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .restoran-auth-showcase *,
    .restoran-auth-showcase::after,
    .auth-panel::before,
    .restoran-brand-mark,
    .restoran-auth-card,
    .restoran-auth-card .login-submit {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .restoran-scene-image,
    .restoran-scene-atmosphere,
    .restoran-scene-grid,
    .restoran-auth-showcase .showcase-content,
    .restoran-auth-card {
        transform: none !important;
    }
}

.rs-login-page {
    min-height: 100vh;
    display: block;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: #eef2f7;
    color: #111827;
}

.rs-login-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 1.02fr) minmax(380px, .98fr);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.rs-login-showcase {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(40px, 5.4vw, 76px);
    background: #172033;
}

.rs-login-showcase-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.rs-login-showcase-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 20, 41, .86) 0%, rgba(13, 33, 60, .49) 48%, rgba(10, 18, 31, .75) 100%);
}

.rs-login-showcase-content {
    position: absolute;
    inset: auto clamp(40px, 5.4vw, 76px) clamp(40px, 5.4vw, 76px);
    z-index: 1;
    color: #ffffff;
}

.rs-login-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.27);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 800;
}

.rs-login-showcase-content h1 {
    max-width: 560px;
    margin: 17px 0 18px;
    color: #ffffff;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.rs-login-showcase-content p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.6;
}

.rs-login-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    align-items: center;
    padding: clamp(28px, 5.8vw, 76px);
    background: #f1f2f5;
}


.rs-login-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 276px);
    margin-bottom: 22px;
}

.rs-login-brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    font-size: 20px;
}

.rs-login-brand strong,
.rs-login-brand span {
    display: block;
}

.rs-login-live { margin-left: auto; padding: 6px 9px; border: 1px solid #bbf7d0; border-radius: 999px; background: #f0fdf4; color: #166534 !important; font-size: 11px !important; font-weight: 800; }
.rs-login-live i { margin-right: 4px; font-size: 8px; }

.rs-login-brand strong {
    font-size: 20px;
    font-weight: 800;
}

.rs-login-brand span {
    color: #64748b;
    font-size: 13px;
    margin-top: 2px;
}

.rs-login-heading {
    position: relative;
    width: min(100%, 276px);
    margin-bottom: 30px;
}

.rs-login-heading span {
    color: #1455d9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rs-login-heading h1 {
    margin: 4px 0 0;
    font-size: 30px;
    letter-spacing: 0;
}

.rs-login-heading p { margin: 8px 0 0; color: #252b3a; font-size: 15px; line-height: 1.5; }

.rs-login-alert {
    width: min(100%, 276px);
    border-radius: 8px;
    padding: 11px 12px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
}

.rs-login-alert.is-error {
    background: #fee2e2;
    color: #991b1b;
}

.rs-login-alert.is-warning {
    background: #ffedd5;
    color: #9a3412;
}

.rs-login-alert.is-success {
    background: #dcfce7;
    color: #166534;
}

.rs-login-form {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(100%, 276px);
}

.rs-login-field {
    display: grid;
    gap: 7px;
    font-weight: 800;
    color: #334155;
}

.rs-login-input-wrap { position: relative; display: block; }
.rs-login-input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; }

.rs-login-form input {
    width: 100%;
    height: 46px;
    border: 0;
    border-bottom: 1px solid #d8dde8;
    border-radius: 0;
    padding: 0 13px 0 36px;
    background: transparent;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.rs-login-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 1px 0 #2563eb;
}

.rs-login-form button {
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .22);
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.rs-login-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; }
.rs-login-footer { width: min(100%, 276px); }
.rs-login-footer > span { color: #64748b; font-size: 11px; line-height: 1.4; }
.rs-login-footer > span i { color: #16a34a; margin-right: 4px; }
.rs-login-panel-link {
    display: inline-block;
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 820px) {
    .rs-login-shell { display: block; min-height: 100vh; max-width: none; }
    .rs-login-showcase { min-height: 245px; }
    .rs-login-showcase { padding: 42px 32px; min-height: 310px; }
    .rs-login-showcase-content { inset: auto 32px 32px; }
    .rs-login-showcase-content h1 { margin-top: 12px; font-size: 28px; }
    .rs-login-showcase-content p { font-size: 13px; }
    .rs-login-card { padding: 42px 24px 32px; }
}

@media (max-width: 430px) {
    .rs-login-footer { align-items: flex-start; flex-direction: column; }
    .rs-login-live { display: none !important; }
}

.rs-branch-card {
    width: min(100%, 520px);
}

.rs-branch-list {
    display: grid;
    gap: 10px;
}

.rs-branch-button {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    padding: 12px 14px;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.rs-branch-button:hover,
.rs-branch-button:focus {
    border-color: #1455d9;
    box-shadow: 0 0 0 3px rgba(20, 85, 217, .12);
    outline: none;
}

.rs-branch-button strong,
.rs-branch-button small,
.rs-branch-button em {
    display: block;
}

.rs-branch-button strong {
    font-size: 17px;
    font-weight: 900;
}

.rs-branch-button small {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.rs-branch-button em {
    margin-top: 7px;
    color: #475569;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.rs-branch-warning {
    color: #d97706;
}

.rs-login-secondary-button {
    width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
