/* Q.Skladování aut — přihlášení a registrace (Racing Red Studio) */
:root {
    --app-primary: #E63946;
    --app-primary-strong: #C92D3A;
    --app-text: #1A1A1B;
    --app-text-muted: #64748B;
    --app-border: #E2E8F0;
    --app-surface: #F8F9FA;
}

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%) !important;
    min-height: 100vh;
    justify-content: center;
}
.ajax-wrapper { width: 100%; }

.login-card {
    width: 100%; max-width: 460px; margin: 0 auto;
    background: #fff; border-radius: 22px;
    border: 1px solid var(--app-border);
    box-shadow: 0 10px 40px rgba(15, 23, 42, .10), 0 2px 8px rgba(15, 23, 42, .04);
    padding: 42px 38px 38px;
    position: relative; overflow: hidden;
    font-size: 16px; line-height: 1.5;
}
.login-card-accent {
    position: absolute; inset: 0 0 auto 0; height: 5px;
    background: linear-gradient(90deg, var(--app-primary) 0%, #ff7a85 50%, var(--app-primary-strong) 100%);
}
.login-brand { text-align: center; margin-bottom: 28px; }
.login-logo { height: 56px; width: auto; }
.login-brand-sub {
    margin-top: 9px; font-size: 12px; letter-spacing: .18em;
    text-transform: uppercase; font-weight: 700; color: var(--app-text-muted);
}
.login-title {
    text-align: center; font-size: 28px; font-weight: 800;
    color: var(--app-text); margin: 0 0 6px; letter-spacing: -.02em;
}
.login-subtitle {
    text-align: center; font-size: 15px; color: var(--app-text-muted);
    margin: 0 0 28px;
}
.login-subtitle a { color: var(--app-primary); font-weight: 600; text-decoration: none; }
.login-subtitle a:hover { text-decoration: underline; }

.login-field { margin-bottom: 18px; }
.login-label {
    display: block; font-size: 12.5px; letter-spacing: .05em;
    text-transform: uppercase; font-weight: 700;
    color: var(--app-text-muted); margin-bottom: 7px;
}
.login-input-wrap { position: relative; display: flex; align-items: center; }
.login-input-wrap i {
    position: absolute; left: 15px; color: var(--app-text-muted); font-size: 15px;
    pointer-events: none;
}
.login-input {
    width: 100%; border: 1px solid var(--app-border); border-radius: 12px;
    padding: 13px 16px 13px 42px; font-size: 16px; color: var(--app-text);
    background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.login-input:focus {
    outline: 0; border-color: var(--app-primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, .12);
}
.login-input.has-pwd-toggle { padding-right: 46px; }
.login-input-wrap .login-pwd-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; border-radius: 9px;
    background: transparent; color: var(--app-text-muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.login-input-wrap .login-pwd-toggle:hover { color: var(--app-primary); background: var(--app-surface); }

.login-error { display: block; color: var(--app-primary); font-size: 13px; margin-top: 6px; }
.login-hint { display: block; color: var(--app-text-muted); font-size: 12.5px; margin-top: 7px; }
.login-form-errors {
    list-style: none; margin: 0 0 16px; padding: 12px 16px;
    background: #fdecee; border: 1px solid #f5c2c7; border-radius: 12px;
    color: #b91c1c; font-size: 14px;
}
.login-form-errors li + li { margin-top: 4px; }

/* Password strength meter (registrace) */
.login-meter { display: flex; gap: 6px; margin-top: 9px; }
.login-meter-bar {
    flex: 1; height: 5px; border-radius: 3px; background: var(--app-border);
    transition: background-color .2s ease;
}
.login-meter-bar.is-on { background: #22c55e; }

.login-submit {
    width: 100%; border: 0; border-radius: 12px; cursor: pointer;
    padding: 14px 16px; font-size: 17px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-strong) 100%);
    box-shadow: 0 8px 20px rgba(230, 57, 70, .32);
    transition: transform .12s ease, box-shadow .12s ease;
    margin-top: 8px;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(230, 57, 70, .40); }
.login-submit:active { transform: translateY(0); }
.login-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.login-flash {
    border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14.5px;
}
.login-flash.is-danger { background: #fdecee; border: 1px solid #f5c2c7; color: #b91c1c; }
.login-flash.is-success { background: #e8f7ee; border: 1px solid #b7e4c7; color: #1d7a3f; }
.login-flash.is-info { background: #eef4fd; border: 1px solid #c7dbf5; color: #1d4ed8; }

/* SweetAlert2 — ponecháno z původního loginu */
html.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown):not(.sweetalert2-nopadding),
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown):not(.modal-open):not(.sweetalert2-nopadding) {
    padding-left: unset !important;
    height: 100% !important;
}
.swal2-popup .swal2-title { font-weight: 600; color: #181c32c7; }
.swal2-popup .swal2-html-container, .swal2-popup .swal2-content { font-size: 1.15rem !important; }
