/* Ronin Pay sign-in (resources/views/auth/unified-login.blade.php).
   The form on night black on the left, the samurai under the red sun on the
   right; on a phone the picture becomes a band above the form.
   Bump ?v= in the view when it changes. */

.rg-body {
    --red: #e3141f; --red-hi: #ff343e; --cream: #f2ebdd; --dim: #a8a096; --faint: #6f6964;
    --ink: #0b0b0c; --s1: #131213; --line: rgba(242, 235, 221, .09);
    margin: 0; min-height: 100vh; background: var(--ink); color: var(--cream);
    font-family: 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.rg-body * { box-sizing: border-box; }
.rg { display: grid; grid-template-columns: minmax(26rem, 36rem) 1fr; min-height: 100vh; }

/* ---------- the form side ---------- */
.rg-side {
    position: relative; display: flex; flex-direction: column; padding: 2rem clamp(1.5rem, 4vw, 3.5rem);
    background:
        radial-gradient(30rem 22rem at 0% 100%, rgba(227, 20, 31, .10), transparent 70%),
        var(--ink);
    border-inline-end: 1px solid var(--line); z-index: 1;
}
.rg-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rg-logo { height: 2.6rem; width: auto; display: block; }
.mn-auth-locale { display: inline-flex; gap: .15rem; padding: .2rem; border-radius: 999px; border: 1px solid var(--line); }
.mn-auth-locale a { padding: .35rem .7rem; border-radius: 999px; font: 600 .75rem/1 'Manrope', sans-serif; color: var(--dim); text-decoration: none; }
.mn-auth-locale a[aria-current="true"] { background: var(--red); color: #fff8ee; }

.rg-main { margin: auto 0; padding: 3rem 0; width: 100%; max-width: 25rem; }
.rg-eyebrow {
    display: flex; align-items: center; gap: .75rem; margin: 0 0 1.1rem;
    font: 700 .68rem/1 'Montserrat', sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--dim);
}
.rg-eyebrow::before { content: ''; width: 1.9rem; height: 2px; border-radius: 2px; background: var(--red); }
.rg-title { margin: 0; font: italic 800 clamp(2.2rem, 4vw, 2.9rem)/1.05 'Montserrat', sans-serif; letter-spacing: -.03em; color: var(--cream); }
.rg-title span, .rg-slogan span { color: var(--red); }
.rg-sub { margin: .9rem 0 2rem; color: var(--dim); font-size: .95rem; line-height: 1.55; }

.rg-error { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.25rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(227, 20, 31, .1); border: 1px solid rgba(227, 20, 31, .35); color: #ffb3b6; font-size: .88rem; }
.rg-error svg { flex: none; width: 1.15rem; height: 1.15rem; color: var(--red-hi); margin-top: .05rem; }

.rg-form { display: grid; gap: 1.1rem; }
.rg-field { display: grid; gap: .5rem; }
.rg-label { font-size: .8rem; font-weight: 600; color: var(--dim); }
.rg-input-wrap { position: relative; display: block; }
.rg-ico { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1.15rem; height: 1.15rem; color: var(--faint); pointer-events: none; transition: color .15s; }
.rg-input {
    width: 100%; height: 3.4rem; padding: 0 1rem 0 2.9rem; border-radius: 14px; border: 1px solid var(--line);
    background: var(--s1); color: var(--cream); font: 500 .98rem 'Manrope', sans-serif; outline: none; transition: border-color .15s, box-shadow .15s;
}
.rg-input::placeholder { color: #5b5651; }
.rg-input:focus { border-color: rgba(227, 20, 31, .85); box-shadow: 0 0 0 4px rgba(227, 20, 31, .16); }
.rg-input-wrap:focus-within .rg-ico { color: var(--red-hi); }
.rg-input--toggle { padding-right: 3.2rem; }
.rg-eye { position: absolute; right: .55rem; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 10px; background: none; color: var(--faint); cursor: pointer; }
.rg-eye:hover { color: var(--cream); }
.rg-eye svg { width: 1.2rem; height: 1.2rem; }
.rg-eye .icon-hide, .rg-eye[data-visible="true"] .icon-show { display: none; }
.rg-eye[data-visible="true"] .icon-hide { display: block; }

.rg-row { display: flex; justify-content: space-between; align-items: center; }
.rg-check { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .88rem; color: var(--dim); }
.rg-check input { appearance: none; -webkit-appearance: none; flex: none; width: 1.2rem; height: 1.2rem; margin: 0; border: 1.5px solid rgba(242, 235, 221, .25); border-radius: 6px; background: var(--s1) center / 78% no-repeat; cursor: pointer; transition: .15s; }
.rg-check input:checked { border-color: var(--red); background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff8ee' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E"); }

.rg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 3.4rem; margin-top: .4rem; border: 0; border-radius: 999px;
    background: var(--red); color: #fff8ee; font: 700 1rem 'Montserrat', sans-serif; cursor: pointer;
    box-shadow: 0 14px 32px -14px rgba(227, 20, 31, .9), inset 0 1px 0 rgba(255, 255, 255, .18); transition: background .15s, transform .15s;
}
.rg-btn svg { width: 1.15rem; height: 1.15rem; transition: transform .15s; }
.rg-btn:hover { background: var(--red-hi); }
.rg-btn:hover svg { transform: translateX(3px); }
.rg-btn:active { transform: translateY(1px); }

.rg-alt { margin: 1.6rem 0 0; font-size: .9rem; color: var(--dim); }
.rg-alt a, .rg-foot a { color: var(--cream); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(227, 20, 31, .7); }
.rg-alt a:hover { color: var(--red-hi); }
.rg-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8rem; color: var(--faint); }
.rg-foot a { display: inline-flex; align-items: center; gap: .4rem; border: 0; color: var(--dim); font-weight: 600; }
.rg-foot svg { width: 1rem; height: 1rem; color: var(--red); }

/* ---------- the picture side ---------- */
.rg-art { position: relative; overflow: hidden; background: #070607; }
.rg-art-photo {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, #0b0b0c 0%, rgba(11, 11, 12, .55) 22%, transparent 48%),
        linear-gradient(0deg, #0b0b0c 0%, rgba(11, 11, 12, .2) 30%, transparent 55%),
        url("/images/brand/ronin-hero.webp?v=1") 62% 30% / cover no-repeat;
    animation: rg-breathe 18s ease-in-out infinite alternate;
}
.rg-art-waves { position: absolute; right: -2rem; bottom: -1rem; width: 26rem; height: 14rem; background: url("/images/brand/ronin-seigaiha.svg") right bottom / 72px 36px repeat; opacity: .22; -webkit-mask-image: radial-gradient(closest-side at 100% 100%, #000, transparent); mask-image: radial-gradient(closest-side at 100% 100%, #000, transparent); }
.rg-art-copy { position: absolute; left: clamp(2rem, 5vw, 4.5rem); bottom: clamp(2rem, 7vh, 5rem); max-width: 30rem; }
.rg-slogan { margin: 0; font: italic 800 clamp(2.8rem, 5.4vw, 5rem)/.98 'Montserrat', sans-serif; letter-spacing: -.035em; color: var(--cream); text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.rg-art-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.rg-art-tags li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px; border: 1px solid rgba(242, 235, 221, .16); background: rgba(11, 11, 12, .55); backdrop-filter: blur(8px); font: 700 .72rem/1 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.rg-art-tags svg { width: 1rem; height: 1rem; color: var(--red-hi); }
@keyframes rg-breathe { from { transform: scale(1); } to { transform: scale(1.05); } }

/* ---------- a phone: the picture as a band, the form below ---------- */
@media (max-width: 900px) {
    .rg { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .rg-art { order: -1; height: 15rem; }
    .rg-art-photo { background: linear-gradient(0deg, #0b0b0c 0%, rgba(11, 11, 12, .1) 60%), url("/images/brand/ronin-hero.webp?v=1") 60% 22% / cover no-repeat; }
    .rg-art-copy, .rg-art-waves { display: none; }
    .rg-side { border: 0; padding: 0 1.25rem 1.5rem; margin-top: -4.5rem; background: transparent; }
    .rg-top { padding-top: .5rem; }
    .rg-logo { height: 2.2rem; }
    .rg-main { padding: 2rem 0 2.5rem; max-width: none; }
    .rg-title { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { .rg-art-photo { animation: none; } }
