/* Raptor Order Relay - login pages (admin + merchant). Self-contained, scoped under .rrl */

.rrl {
    --rrl-text: #1f2a37;
    --rrl-muted: #6b7280;
    --rrl-border: #d5dce5;
    --rrl-accent: #ff6a13;
    --rrl-dark: #111827;
    margin: 0;
    min-height: 100vh;
    background: #f5f7fa;
    color: var(--rrl-text);
    font-size: .925rem;
    -webkit-font-smoothing: antialiased;
}

.rrl-wrap { display: flex; min-height: 100vh; }

/* ---------- Brand panel (left) */
.rrl-brand {
    flex: 0 0 44%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #e5e7eb;
    background:
        radial-gradient(700px 420px at 15% 110%, rgba(255, 106, 19, .28) 0%, rgba(255, 106, 19, 0) 60%),
        radial-gradient(600px 380px at 110% -10%, rgba(226, 0, 166, .18) 0%, rgba(226, 0, 166, 0) 60%),
        var(--rrl-dark);
}
.rrl-brand::after {      /* subtle grid texture */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 36px 36px;
}
.rrl-brand > * { position: relative; z-index: 1; }
.rrl-brand-top { display: flex; align-items: center; gap: 12px; }
.rrl-brand-top img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.rrl-brand-name { font-weight: 600; font-size: 1.05rem; color: #fff; line-height: 1.2; }
.rrl-brand-name small { display: block; font-weight: 500; font-size: .75rem; color: #9ca3af; letter-spacing: .06em; text-transform: uppercase; }
.rrl-brand h2 { color: #fff; font-size: 2rem; font-weight: 600; line-height: 1.2; margin: 0 0 12px; max-width: 440px; }
.rrl-brand p.rrl-lead { color: #9ca3af; font-size: 1rem; max-width: 420px; margin: 0 0 28px; }
.rrl-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rrl-features li { display: flex; gap: 12px; align-items: flex-start; color: #d1d5db; }
.rrl-features svg { flex: none; width: 20px; height: 20px; color: var(--rrl-accent); margin-top: 1px; }
.rrl-brand-foot { font-size: .8rem; color: #6b7280; }

/* ---------- Form side (right) */
.rrl-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(900px 400px at 50% -10%, #fff3ea 0%, rgba(255, 243, 234, 0) 60%),
        #f5f7fa;
}
.rrl-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(16, 24, 40, .08);
    padding: 36px 36px 28px;
}
.rrl-card-icon { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 6px 16px rgba(16,24,40,.15); margin-bottom: 18px; }
.rrl-card-icon.rrl-gray { filter: grayscale(100%); transition: filter .3s; }
.rrl-card:hover .rrl-card-icon.rrl-gray { filter: none; }
.rrl-badge {
    display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 999px; margin-bottom: 10px;
}
.rrl-badge.admin { background: #eef1f5; color: #374151; }
.rrl-badge.merchant { background: #fff1e8; color: #c2410c; }
.rrl-card h1 { font-size: 1.45rem; font-weight: 600; margin: 0 0 4px; }
.rrl-card .rrl-sub { color: var(--rrl-muted); margin: 0 0 24px; }

.rrl-field { margin-bottom: 16px; }
.rrl-field label.rrl-label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.rrl-input { position: relative; }
.rrl-input > svg.rrl-ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: #9ca3af; pointer-events: none;
}
.rrl-input input {
    width: 100%; height: 46px; padding: 0 44px 0 40px;
    border: 1px solid var(--rrl-border); border-radius: 10px; background: #fff;
    font-size: .95rem; color: var(--rrl-text); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.rrl-input input::placeholder { color: #9ca3af; }
.rrl-input input:focus { border-color: #f6a26b; box-shadow: 0 0 0 .22rem rgba(255, 106, 19, .14); }
.rrl-input input.error { border-color: #e5a3a3; }
.rrl-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: none; background: transparent; color: #6b7280; padding: 6px 8px; border-radius: 8px; cursor: pointer;
}
.rrl-toggle:hover { background: #f1f3f6; color: var(--rrl-text); }
.rrl-toggle svg { width: 18px; height: 18px; display: block; }
.rrl-caps { display: none; font-size: .75rem; color: #b45309; margin-top: 6px; }
.rrl-caps.show { display: block; }

/* jQuery validation message */
.rrl label.error {
    display: block; margin: 6px 0 0; padding: 0; background: none;
    color: #c53030; font-size: .78rem; font-weight: 500;
}

.rrl-btn {
    width: 100%; height: 46px; margin-top: 8px; border: none; border-radius: 10px;
    background: var(--rrl-dark); color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: .02em;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .2s, transform .05s;
    position: relative; overflow: hidden;
}
.rrl-btn:hover { background: #000; }
.rrl-btn:active { transform: translateY(1px); }
.rrl-btn::after {        /* brand gradient strip on hover */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; opacity: 0;
    background: linear-gradient(90deg, #ff3232, #e200a6 35%, #ffbb00 65%, #31d829);
    transition: opacity .2s;
}
.rrl-btn:hover::after { opacity: 1; }
.rrl-btn[disabled] { opacity: .75; cursor: progress; }
.rrl-btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }

/* error from session (p_login / p_admin_login) */
.rrl-alert .alert {
    display: flex !important; gap: 8px; align-items: flex-start;
    margin: 0 0 18px !important; padding: 10px 12px !important;
    border-radius: 10px; border: 1px solid #f3c4c4; background: #fdecec; color: #9b1c1c;
    font-size: .85rem; position: static !important; width: auto !important;
}

.rrl-switch { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef1f5; text-align: center; font-size: .85rem; color: var(--rrl-muted); }
.rrl-switch a { color: #c2410c; font-weight: 600; text-decoration: none; }
.rrl-switch a:hover { text-decoration: underline; }

.rrl-foot { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #9ca3af; font-size: .78rem; }
.rrl-foot img { width: 96px; opacity: .9; }

@media (max-width: 991.98px) {
    .rrl-brand { display: none; }
}
@media (max-width: 480px) {
    .rrl-card { padding: 28px 22px 22px; border-radius: 14px; }
}
