/* ======================================================
   guest.css — RaportKierowcy.pl
   Styles for auth pages (login, register, etc.)
   ====================================================== */

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url('/fonts/MaterialSymbolsOutlined.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    color: currentColor;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ======================================================
   AUTH BODY / WRAPPER
   ====================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: "Open Sans", sans-serif;
}

body.auth-body {
    background: #0a1628;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    align-items: stretch;
}

/* ======================================================
   LOGIN TWO-PANEL LAYOUT
   ====================================================== */

.rk-login-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ===== LEFT: BRAND PANEL ===== */
.rk-login-brand {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1f3c 0%, #0a1628 60%, #071020 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.rk-login-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.rk-login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
}

.rk-login-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.rk-login-logo span {
    font-family: "Google Sans Flex", sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #94a3b8;
    letter-spacing: -.3px;
}

.rk-login-logo strong {
    font-weight: 600;
    color: #e2e8f0;
}

.rk-login-tagline h2 {
    font-family: "Google Sans Flex", sans-serif;
    font-size: 38px;
    font-weight: 200;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -.5px;
}

.rk-login-tagline p {
    font-size: 14px;
    color: #4a6070;
    line-height: 1.7;
    font-family: "Open Sans", sans-serif;
}

.rk-login-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 48px;
}

.rk-login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #5a7080;
    font-family: "Open Sans", sans-serif;
}

.rk-login-feature .material-symbols-outlined {
    font-size: 18px !important;
    color: #22d3ee;
    opacity: .7;
}

/* ===== DECORATIVE BACKGROUND ===== */
.rk-brand-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.rk-brand-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.rk-brand-orb--1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(34,211,238,.12) 0%, transparent 70%);
    animation: rk-orb-float 8s ease-in-out infinite;
}

.rk-brand-orb--2 {
    width: 400px;
    height: 400px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(56,189,248,.08) 0%, transparent 70%);
    animation: rk-orb-float 11s ease-in-out infinite reverse;
}

.rk-brand-orb--3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(34,211,238,.05) 0%, transparent 70%);
    animation: rk-orb-float 6s ease-in-out infinite;
}

@keyframes rk-orb-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}

.rk-brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34,211,238,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,211,238,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 70%);
}

/* ===== RIGHT: FORM PANEL ===== */
.rk-login-form-panel {
    width: 40%;
    flex-shrink: 0;
    background: #0f172a;
    border-left: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.rk-login-form-wrap {
    width: 100%;
    max-width: 360px;
}

.rk-login-form-header {
    margin-bottom: 36px;
}

.rk-login-form-header h1 {
    font-family: "Google Sans Flex", sans-serif;
    font-size: 28px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 6px;
}

.rk-login-form-header h2 {
    font-family: "Google Sans Flex", sans-serif;
    font-size: 24px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 6px;
}

.rk-login-form-header p {
    font-size: 13px;
    color: #4a6070;
    font-family: "Open Sans", sans-serif;
}

/* ===== FORM ELEMENTS ===== */
.rk-form-group {
    margin-bottom: 18px;
}

.rk-form-group:last-of-type {
    margin-bottom: 0;
}

.rk-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Google Sans Flex", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #5a7080;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 7px;
}

.rk-form-label .material-symbols-outlined {
    font-size: 15px !important;
    color: #4a6070;
}

.rk-form-required {
    color: #ef4444;
    margin-left: 2px;
}

.rk-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.rk-login-label-row .rk-form-label {
    margin-bottom: 0;
}

.rk-login-forgot {
    font-size: 12px;
    color: #38bdf8;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
}

.rk-login-forgot:hover {
    text-decoration: underline;
}

/* Input */
.rk-form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 14px;
    font-family: "Open Sans", sans-serif;
    border-radius: 10px;
    color: #e2e8f0;
    background: rgba(11,18,32,.6);
    border: 1px solid rgba(255,255,255,.1);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.rk-form-input:focus {
    border-color: rgba(34,211,238,.45);
    box-shadow: 0 0 0 3px rgba(34,211,238,.08);
}

.rk-form-input::placeholder {
    color: #3a4a58;
}

.rk-form-input--error {
    border-color: rgba(239,68,68,.5) !important;
}

.rk-form-input--error:focus {
    box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}

/* Login input (slightly larger than app forms) */
.rk-login-input {
    font-size: 15px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    letter-spacing: .2px;
}

.rk-login-input:focus {
    border-color: rgba(34,211,238,.5) !important;
    box-shadow: 0 0 0 3px rgba(34,211,238,.08) !important;
    background: rgba(255,255,255,.06) !important;
}

/* Validation error */
.rk-form-error {
    margin-top: 5px;
    font-size: 12px;
    color: #f87171;
    font-family: "Open Sans", sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rk-form-error::before {
    content: 'error';
    font-family: 'Material Symbols Outlined';
    font-size: 14px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Password show/hide */
.rk-password-wrap {
    position: relative;
}

.rk-password-wrap .rk-login-input {
    padding-right: 44px !important;
    width: 100%;
    box-sizing: border-box;
}

.rk-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #4a6070;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color .2s;
}

.rk-password-toggle:hover {
    color: #94a3b8;
}

.rk-password-toggle .material-symbols-outlined {
    font-size: 18px !important;
}

/* Submit button */
.rk-login-btn {
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    color: #001429;
    font-size: 15px;
    font-weight: 600;
    font-family: "Google Sans Flex", sans-serif;
    cursor: pointer;
    transition: opacity .2s, box-shadow .2s, transform .1s;
    letter-spacing: .2px;
}

.rk-login-btn .material-symbols-outlined {
    font-size: 18px !important;
}

.rk-login-btn:hover {
    opacity: .92;
    box-shadow: 0 8px 24px rgba(34,211,238,.3);
    transform: translateY(-1px);
}

.rk-login-btn:active {
    transform: translateY(0);
    opacity: 1;
}

/* Footer register link */
.rk-login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #4a6070;
    font-family: "Open Sans", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rk-login-footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.rk-login-footer a:hover {
    text-decoration: underline;
}

/* Alert styles (reused from app) */
.alert {
    border: 1px dashed #74829f;
    border-radius: 14px;
    padding: 14px 14px;
    margin-bottom: 20px;
    background: #314d6d;
    color: #fff;
    font-size: 14px;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 900px) {
    .rk-login-brand {
        display: none;
    }

    .rk-login-form-panel {
        width: 100%;
        border-left: none;
    }

    body.auth-body {
        overflow: auto;
    }
}

@media (max-width: 480px) {
    .rk-login-form-panel {
        padding: 32px 24px;
		align-items: flex-start;
    }

    .rk-login-form-header h1 {
        font-size: 24px;
    }

    .rk-login-form-header h2 {
        font-size: 20px;
    }
}

/* ======================================================
   REGISTER PAGE
   ====================================================== */

/* Taller form panel for register */
.rk-register-panel {
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.rk-register-form-wrap {
    max-width: 400px !important;
}

/* Step indicator */
.rk-reg-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
}

.rk-reg-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4a6070;
    font-family: "Google Sans Flex", sans-serif;
    font-weight: 500;
    transition: color .2s;
}

.rk-reg-step--active {
    color: #e2e8f0;
}

.rk-reg-step--done {
    color: #22d3ee;
}

.rk-reg-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,.12);
    color: #4a6070;
    transition: all .2s;
    flex-shrink: 0;
}

.rk-reg-step--active .rk-reg-step-dot {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    border-color: transparent;
    color: #001429;
}

.rk-reg-step--done .rk-reg-step-dot {
    background: rgba(34,211,238,.15);
    border-color: rgba(34,211,238,.4);
    color: #22d3ee;
}

.rk-reg-step-line {
    flex: 1;
    height: 1.5px;
    background: rgba(255,255,255,.08);
    margin: 0 12px;
    position: relative;
    overflow: hidden;
}

/* Step content */
.rk-reg-step-content {
    transition: opacity .2s;
}

.rk-reg-step-content--hidden {
    display: none;
}

/* Half-row layout */
.rk-reg-half-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Checkboxes */
.rk-reg-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.rk-reg-check-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #7a9ab0;
    font-family: "Open Sans", sans-serif;
    line-height: 1.4;
}

.rk-reg-check-label input[type="checkbox"] {
    display: none;
}

.rk-reg-check-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 5px;
    border: 1.5px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
    margin-top: 1px;
    position: relative;
}

.rk-reg-check-label input:checked ~ .rk-reg-check-box {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    border-color: transparent;
}

.rk-reg-check-label input:checked ~ .rk-reg-check-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid #001429;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
    display: block;
}

.rk-reg-check-label a {
    color: #38bdf8;
    text-decoration: none;
}

.rk-reg-check-label a:hover {
    text-decoration: underline;
}

/* Step 2 action buttons */
.rk-reg-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rk-reg-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: #7a9ab0;
    font-size: 14px;
    font-family: "Google Sans Flex", sans-serif;
    cursor: pointer;
    transition: background .2s, color .2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.rk-reg-back-btn:hover {
    background: rgba(255,255,255,.08);
    color: #e2e8f0;
}

.rk-reg-back-btn .material-symbols-outlined {
    font-size: 16px !important;
}

.rk-reg-submit-btn {
    flex: 1;
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 540px) {
    .rk-reg-half-row {
        grid-template-columns: 1fr;
        gap: 0;
		margin-bottom: 18px;
    }

    .rk-register-panel {
        padding-top: 32px;
        padding-bottom: 32px;
		align-items: flex-start;
    }
}
/* ======================================================
   PLAN SELECTION CARDS (register step 0)
   ====================================================== */

.rk-plan-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.rk-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.03);
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    overflow: hidden;
}
.rk-plan-card:hover {
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    transform: translateY(-1px);
}
.rk-plan-card--selected {
    border-color: rgba(34,211,238,.5) !important;
    background: rgba(34,211,238,.06) !important;
}

.rk-plan-badge {
	position: absolute;
	top: 7px;
	left: 20px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	padding: 1px 8px;
	border-radius: 20px;
	background: linear-gradient(135deg, #38bdf8, #22d3ee);
	color: #001429;
}

.rk-plan-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.rk-plan-name {
    font-family: "Google Sans Flex", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}
.rk-plan-card--selected .rk-plan-name { color: #22d3ee; }

.rk-plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.rk-plan-amount {
    font-size: 22px;
    font-weight: 600;
    font-family: "Google Sans Flex", sans-serif;
    color: #e2e8f0;
}
.rk-plan-period {
    font-size: 11px;
    color: #5a7080;
}

.rk-plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rk-plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #c8d5dd;
    font-family: "Open Sans", sans-serif;
}
.rk-plan-features li svg { color: #22c55e; flex-shrink: 0; }
.rk-plan-feature--no { color: #4a6070 !important; }
.rk-plan-feature--no svg { color: #4a6070 !important; }

.rk-plan-cap {
    font-size: 11px;
    color: #22d3ee;
    font-family: "Google Sans Flex", sans-serif;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(34,211,238,.08);
    border-radius: 20px;
    width: fit-content;
}

.rk-plan-check {
    position: absolute;
    top: 4px;
	right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: background .2s, border-color .2s, color .2s;
}
.rk-plan-card--selected .rk-plan-check {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    border-color: transparent;
    color: #001429;
}

/* --- Optional field label hint --- */
.rk-form-optional {
    font-size: 10px;
    font-weight: 400;
    color: #4a6070;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 2px;
}

/* --- Checkbox error state --- */
.rk-reg-check-label--error .rk-reg-check-box {
    border-color: rgba(239,68,68,.6) !important;
    background: rgba(239,68,68,.06);
}

.rk-reg-check-label--error > span:last-child {
    color: #f87171;
}

.auth-body .alert{
	display: none !important;
}

/* --- Logo as link --- */
a.rk-login-logo {
    text-decoration: none;
}
 
/* ======================================================
   FORGOT PASSWORD — success message
   ====================================================== */

.rk-forgot-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .25);
    margin-bottom: 24px;
}

.rk-forgot-success .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 22px !important;
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 1px;
}

.rk-forgot-success div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rk-forgot-success strong {
    font-size: 14px;
    font-weight: 600;
    color: #86efac;
    font-family: "Google Sans Flex", sans-serif;
}

.rk-forgot-success span {
    font-size: 13px;
    color: #4ade80;
    opacity: .8;
    font-family: "Open Sans", sans-serif;
    line-height: 1.4;
}

/* ======================================================
   COOKIE CONSENT
   ====================================================== */
.rk-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
    z-index: 9999;
    width: calc(100% - 48px);
    max-width: 680px;
    background: rgba(10, 22, 40, 0.97);
    border: 1px solid rgba(34,211,238,.2);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(34,211,238,.06);
    backdrop-filter: blur(16px);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
    pointer-events: none;
}
.rk-cookie-banner--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.rk-cookie-inner { display: flex; align-items: center; gap: 20px; padding: 18px 22px; }
.rk-cookie-text { flex: 1; min-width: 0; font-family: "Open Sans", sans-serif; }
.rk-cookie-text strong { display: block; font-size: 14px; font-weight: 600; color: #e2e8f0; margin-bottom: 4px; }
.rk-cookie-text p { font-size: 13px; color: #64748b; line-height: 1.5; margin: 0; }
.rk-cookie-text a { color: #22d3ee; text-decoration: none; }
.rk-cookie-text a:hover { text-decoration: underline; }
.rk-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.rk-cookie-btn { padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; white-space: nowrap; transition: opacity .2s, transform .15s; }
.rk-cookie-btn:hover { opacity: .88; transform: translateY(-1px); }
.rk-cookie-btn--secondary { background: rgba(255,255,255,.06); color: #94a3b8; border: 1px solid rgba(255,255,255,.1); }
.rk-cookie-btn--primary { background: linear-gradient(135deg, #38bdf8, #22d3ee); color: #001224; }
.rk-cookie-fab { position: fixed; bottom: 24px; left: 24px; z-index: 9998; width: 38px; height: 38px; border-radius: 50%; background: rgba(10,22,40,.9); border: 1px solid rgba(255,255,255,.1); color: #64748b; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color .2s, border-color .2s; }
.rk-cookie-fab:hover { color: #22d3ee; border-color: rgba(34,211,238,.3); }
@media (max-width: 600px) {
    .rk-cookie-inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .rk-cookie-actions { justify-content: flex-end; }
}
