/* Shared authentication modal styles; UI is independent from PHP handlers. */
.auth-modal[hidden] { display: none !important; }
.auth-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(10px); }
.auth-dialog { position: relative; z-index: 1; width: min(100%, 440px); max-height: min(92vh, 820px); overflow: auto; padding: 34px 32px 28px; color: #fff; background: linear-gradient(155deg, rgba(25,12,12,.98), rgba(9,9,9,.98)); border: 1px solid rgba(255,35,35,.28); border-radius: 20px; box-shadow: 0 28px 100px rgba(0,0,0,.65), 0 0 50px rgba(255,0,0,.10); animation: auth-modal-enter .18s ease-out; }
@keyframes auth-modal-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.66); font-size: 16px; cursor: pointer; }
.auth-close:hover { color: #fff; background: rgba(255,0,0,.15); border-color: rgba(255,0,0,.28); }
.auth-brand { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 14px; color: #ff3636; background: rgba(255,0,0,.09); border: 1px solid rgba(255,0,0,.2); border-radius: 16px; font-size: 25px; box-shadow: 0 0 26px rgba(255,0,0,.08); }
.auth-dialog h2 { margin: 0; text-align: center; font-size: 23px; font-weight: 900; letter-spacing: 2.5px; }
.auth-subtitle { margin: 7px 0 24px; color: rgba(255,255,255,.43); text-align: center; font-size: 12px; letter-spacing: .6px; }
.auth-form { display: flex; flex-direction: column; gap: 9px; }
.auth-form > label:not(.auth-check) { margin-top: 7px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 700; }
.auth-input { display: flex; align-items: center; gap: 11px; min-height: 47px; padding: 0 14px; border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.4); transition: border-color .2s, background .2s; }
.auth-input:focus-within { border-color: rgba(255,35,35,.56); background: rgba(255,0,0,.035); }
.auth-input > i { width: 16px; text-align: center; color: #ff4545; }
.auth-input input { flex: 1; width: 100%; padding: 13px 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; }
.auth-input input::placeholder { color: rgba(255,255,255,.28); }
.auth-check { display: inline-flex; align-items: center; gap: 8px; margin: 7px 0 5px; color: rgba(255,255,255,.55); font-size: 12px; cursor: pointer; }
.auth-check input { accent-color: #e11d2e; }
.auth-submit { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 47px; margin-top: 9px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #bd0712, #f32332); color: #fff; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .8px; cursor: pointer; box-shadow: 0 8px 25px rgba(220,0,20,.16); transition: transform .18s, box-shadow .18s, opacity .18s; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(220,0,20,.25); }
.auth-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-switch { margin: 22px 0 0; text-align: center; color: rgba(255,255,255,.42); font-size: 12px; }
.auth-switch button { padding: 0; border: 0; background: none; color: #ff5454; font: inherit; font-weight: 800; cursor: pointer; }
.auth-switch button:hover { color: #fff; text-decoration: underline; }
.auth-message { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 17px; padding: 11px 12px; border-radius: 9px; font-size: 12px; line-height: 1.55; }
.auth-message-error { color: #ffb4b4; background: rgba(255,0,0,.08); border: 1px solid rgba(255,50,50,.22); }
.auth-message i { margin-top: 2px; color: #ff5050; }
body.auth-modal-open { overflow: hidden; }
@media (max-width: 480px) { .auth-modal { padding: 12px; align-items: center; } .auth-dialog { padding: 28px 20px 22px; border-radius: 16px; } .auth-dialog h2 { font-size: 20px; } }
