/* Logowanie i rejestracja - Profesjonalny design*/

/* Dostępność: jednolity focus dla przycisków */
[class*="btn"]:focus-visible,
[class*="button"]:focus-visible,
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
    outline: 2px solid #003d82;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.25);
}

/* Nadpisanie min-height dla main-container na stronach auth */
.main-container-auth {
    min-height: auto !important;
}

/* Kontener główny */
.login-register {
    background: linear-gradient(160deg, #eceef1 0%, #f2f4f7 40%, #f7f8fa 80%, #fafbfc 100%);
    background-attachment: fixed;
    padding: 2rem 0;
}

/* ============================================
   UWAGA: .form-section ma DWA RÓŻNE ZNACZENIA (ZACHOWAĆ OBA!)
   
   auth.css: .form-section = kontener strony (layout wrapper)
   forms.css: .form-section = sekcja wewnątrz formularza (visual section)
   
   Różne konteksty, różne style - CELOWO!
   ============================================ */
.form-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* Węższy kontener dla formularzy logowania i rejestracji z danymi */
.form-section--narrow {
    max-width: 500px;
    padding: 0;
    margin: 0 auto;
}

/* Nadpisanie dla .container wewnątrz formularzy auth - pełna szerokość dla prawidłowego centrowania */
.login-register .container {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Nadpisanie dla formularzy logowania - brak marginesów */
.login-register .form-section--narrow .container {
    max-width: 100%;
}

/* .form-border - główna definicja w forms.css z modyfikatorem dla .login-register */
/* 
   Nadpisanie margin-bottom dla formularzy logowania/rejestracji:
   - Bazowy .form-border ma margin-bottom: 1.25rem (forms.css)
   - To nadpisanie zeruje margin, aby uniknąć szarej przestrzeni pod formularzem
   - Zarządzamy spacingiem przez padding kontenera .login-register
*/
.login-register .form-border {
    margin-bottom: 0;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.auth-subtitle {
    color: #656565;
    margin: 0;
    font-size: 1rem;
}

/* Toggle przyciski */
.auth-toggle {
    display: flex;
    background: #f4f7f6;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
}

.toggle-btn {
    flex: 1;
    padding: 0.25rem 0;
    border: none;
    background: transparent;
    color: #656565;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    border-radius: 5px;
}

.toggle-btn.active {
    color: #ffffff;
    background: #003153;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Wybór typu konta */
.account-type-section {
    margin-bottom: 2rem;
}

.account-type-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.account-type-subtitle {
    color: #656565;
    text-align: center;
    margin: 0 0 2rem 0;
    font-size: 0.875rem;
}

.account-type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.account-type-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 440px;
}

.account-type-card:hover {
    border-color: #003153;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.account-type-card.selected {
    border-color: #003153;
    background: #e3f2fd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.account-type-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 4.5rem;
    /* Zwiększona wysokość dla większych ikon */
    margin: 0 auto 1rem;
    color: #003153;
}

.account-type-icon svg {
    max-width: 100%;
    height: auto;
    max-height: 6rem;
    /* Maksymalna wysokość ikony */
}

.account-type-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.5rem 0;
}

.account-type-description {
    color: #656565;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.account-type-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-type-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.5;
}

.account-type-features li::before {
    content: "✓";
    color: #003153;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    width: 1rem;
    display: inline-block;
    text-align: center;
}

.account-type-free-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #003153;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.account-type-note {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}

/* Progress bar */
.progress-header {
    margin-bottom: 1.5rem;
}

/* Progress bar w widoku płatności - bez dolnego marginesu */
#payment .progress-header {
    margin-bottom: 0;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f4f7f6;
    color: #656565;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: #003153;
    color: #ffffff;
}

.step-label {
    font-size: 0.75rem;
    color: #656565;
    text-align: center;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #374151;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #f4f7f6;
    position: relative;
    top: -1.25rem;
    margin: 0 1rem;
}

.progress-line.completed {
    background: #003153;
}

/* Formularze */
.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auth-form .form-control {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
}

/* Pakiety subskrypcji */
.access-packages {
    margin-bottom: 2rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* .package-card - główna definicja w forms.css */

.package-badge {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background: #003153;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

/* .price-amount, .price-currency, .price-period - główne definicje w forms.css */

.package-savings {
    background: #e3f2fd;
    color: #003153;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Przyciski akcji */
.auth-actions {
    margin-top: 2rem;
}

.registration-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.registration-buttons .btn {
    padding: 0.625rem 1.5rem;
}

/* Back link - tekstowy link do powrotu w formularzu */
.form-back-link {
    color: #666;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    text-align: center;
}

.form-back-link:hover {
    color: #003153;
    text-decoration: underline;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-link a {
    color: #003153;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Komunikaty */
.auth-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Domyślne style (dla błędów gdy brak modyfikatora) */
    background: rgba(220, 53, 69, 0.08);
    color: #b91c1c;
    border: 2px solid #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.12);
}

.auth-message::before {
    content: "✕";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.auth-message.success {
    background: rgba(11, 74, 115, 0.08);
    color: #003153;
    border: 2px solid #0B4A73;
    box-shadow: 0 2px 8px rgba(11, 74, 115, 0.12);
}

.auth-message.success::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #0B4A73;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.auth-message.error {
    background: rgba(220, 53, 69, 0.08);
    color: #b91c1c;
    border: 2px solid #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.12);
}

.auth-message.error::before {
    content: "✕";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

.auth-message.info {
    background: rgba(243, 156, 18, 0.08);
    color: #855a0e;
    border: 2px solid #F39C12;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.12);
}

.auth-message.info::before {
    content: "ⓘ";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #F39C12;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

/* Modyfikator .error jest opcjonalny - bazowa klasa już ma style błędu */

/* Wybór planu subskrypcji */
.plan-selection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #213445;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.plan-selection-subtitle {
    color: #656565;
    text-align: center;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.access-plans {
    margin-bottom: 2rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.plans-grid.team-plans {
    grid-template-columns: repeat(2, 1fr);
}

.plan-group {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.plan-group.recommended {
    border-color: #F39C12;
    background: #fffbf5;
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #F39C12;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #213445;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.plan-group-desc {
    color: #656565;
    font-size: 0.875rem;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.plan-features-list {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin: 0 0 1.5rem 0;
}

.plan-features-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-features-list li {
    color: #213445;
    font-size: 0.875rem;
    line-height: 1.8;
    padding: 0.25rem 0;
}

.plan-features-list li::before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Nowe style dla funkcji dostępnych/niedostępnych */
.plan-features-list li.feature-available {
    color: #213445;
}

.plan-features-list li.feature-unavailable {
    color: #9ca3af;
}

.plan-features-list li.feature-available .feature-icon {
    color: #27ae60;
    font-weight: bold;
    margin-right: 0.5rem;
}

.plan-features-list li.feature-unavailable .feature-icon {
    color: #ef4444;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Ukryj domyślny ::before dla funkcji z ikonami */
.plan-features-list li.feature-available::before,
.plan-features-list li.feature-unavailable::before {
    content: none;
}

.plan-periods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-card:hover {
    border-color: #003153;
    box-shadow: 0 2px 8px rgba(0, 49, 83, 0.1);
}

.plan-card.selected {
    border-color: #003153;
    background: #f0f4f8;
    box-shadow: 0 4px 12px rgba(0, 49, 83, 0.15);
}

.plan-period {
    font-weight: 600;
    color: #213445;
    font-size: 1rem;
}

.plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003153;
}

.plan-price-per-day {
    font-size: 0.75rem;
    color: #656565;
    text-align: right;
}

.plan-selection-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* .access-guide - usunięto, używaj globalnej klasy .info-link z main.css */

/* ==================== PHONE INPUT ==================== */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #003153;
    box-shadow: 0 0 0 2px rgba(0, 49, 83, 0.15);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    background: #f4f7f6;
    color: #374151;
    font-weight: 600;
    font-size: 0.9375rem;
    border-right: 1px solid #d1d5db;
    user-select: none;
    flex-shrink: 0;
}

.phone-input-wrapper .form-control {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    flex: 1;
    min-width: 0;
}

.phone-hint {
    display: none;
    margin-top: 6px;
    font-size: clamp(0.7813rem, 0.75rem + 0.1389vw, 0.875rem);
    line-height: 1.4;
    color: #6b7280;
}

.phone-hint.visible {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* ==================== OTP MODAL ==================== */
.otp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    backdrop-filter: blur(2px);
    box-sizing: border-box;
}

.otp-modal-overlay.hidden {
    display: none;
}

.otp-modal {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.otp-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.otp-modal-close:hover {
    color: #374151;
}

.otp-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003153;
    margin: 0 0 0.5rem 0;
}

.otp-modal-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.25rem 0;
}

.otp-modal-phone {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1.5rem 0;
}

.otp-modal-phone:empty {
    display: none;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 1.25rem;
}

.otp-input {
    width: 48px;
    height: 56px;
    flex: 0 1 48px;
    min-width: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    color: #003153;
    transition: border-color 0.2s ease;
}

.otp-input:focus {
    border-color: #003153;
    box-shadow: 0 0 0 2px rgba(0, 49, 83, 0.15);
}

.otp-modal-error {
    background: rgba(220, 53, 69, 0.08);
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.otp-modal-error.hidden {
    display: none;
}

.otp-verify-btn {
    margin-bottom: 1rem;
}

.otp-verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.otp-resend-wrapper {
    font-size: 0.8125rem;
    color: #6b7280;
    min-height: 28px;
}

.otp-resend-timer {
    display: inline-block;
}

.otp-resend-timer.hidden {
    display: none;
}

.otp-resend-btn {
    background: none;
    border: none;
    color: #003153;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8125rem;
    text-decoration: underline;
    padding: 0;
}

.otp-resend-btn.hidden {
    display: none;
}

.otp-resend-btn:hover {
    color: #001f3d;
}


/* Spinner przetwarzania płatności */
.payment-spinner-icon {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(0, 49, 83, 0.15);
    border-top-color: #003153;
    border-radius: 50%;
    animation: payment-spin 0.75s linear infinite;
    margin: 0 auto;
}

@keyframes payment-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   OTP modal — checkbox "Zaufaj temu urządzeniu"
   — slot warunkowy (otpShowTrustDevice), widoczny tylko w flow MFA login
   — bazowe style, responsywność dziedziczona z .otp-modal (modal scope)
   ======================================== */
.otp-trust-device {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #555;
    cursor: pointer;
    line-height: 1.45;
    user-select: none;
}

.otp-trust-device input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #0B4A73;
}

.otp-trust-device span {
    min-width: 0;
}

/* Responsywność */
@media (max-width: 1024px) {
    .account-type-options {
        grid-template-columns: 1fr;
    }

    .registration-buttons .btn {
        padding: 0.5625rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .login-register {
        padding: 1.5rem 0;
    }

    /* Nadpisanie dla .container - zachowujemy pełną szerokość */
    .login-register .container {
        width: 100% !important;
        padding: 0 1rem !important;
    }

    .auth-container {
        padding: 1rem;
    }

    .form-section--narrow {
        padding: 0;
    }

    .auth-card {
        padding: 2rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .account-type-options,
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .progress-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-line {
        display: none;
    }

    .toggle-btn {
        padding: 0.25rem 0;
    }
    
    .plans-grid,
    .plans-grid.team-plans {
        grid-template-columns: 1fr;
    }

    .plan-card {
        padding: 0.375rem 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .plan-price-per-day {
        text-align: center;
    }

    .access-guide {
        font-size: 15px;
    }

    .form-back-link {
        font-size: 15px;
    }

    .hide-progress-on-mobile {
        display: none !important;
    }

    /* Phone input - tablet */
    .phone-prefix {
        font-size: 15px;
    }

    /* OTP modal - tablet */
    .otp-modal {
        padding: 1.75rem;
        max-height: calc(100dvh - 1.5rem);
    }

}

@media (max-width: 576px) {
    .login-register .container {
        padding: 0 0.875rem !important;
    }

    .form-section--narrow {
        max-width: 100%;
    }

    .registration-buttons .btn {
        padding: 0.5rem 1rem;
    }

    .auth-card {
        padding: 1.75rem;
    }

    .auth-title {
        font-size: 1.625rem;
    }

    .auth-subtitle {
        font-size: 0.9375rem;
    }

    .account-type-card {
        padding: 1.375rem;
        min-height: 400px;
    }

    .account-type-icon {
        min-height: 4.25rem;
    }

    .account-type-icon svg {
        max-height: 5.5rem;
    }

    .account-type-card h3 {
        font-size: 1.0625rem;
    }

    .account-type-description {
        font-size: 0.875rem;
    }

    .account-type-features li {
        font-size: 0.8125rem;
        padding: 0.3125rem 0;
    }

    .auth-toggle,
    .login-register-toggle {
        padding: 0.1875rem;
        margin-bottom: 1.5rem;
    }

    .toggle-btn {
        padding: 0.1875rem 0;
    }

    .package-card {
        padding: 1.375rem;
    }

    .package-header h4 {
        font-size: 1.0625rem;
    }

    .package-price {
        margin-bottom: 0.625rem;
    }

    .plan-period {
        font-size: 0.9375rem;
    }

    .plan-price {
        font-size: 1.1875rem;
    }

    .plan-price-per-day {
        font-size: 0.8rem;
    }

    .step-number {
        width: 2.375rem;
        height: 2.375rem;
        font-size: 0.8125rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .auth-form .form-control {
        padding: 0.8125rem 0.9375rem;
        font-size: 1rem;
        min-height: 44px;
        box-sizing: border-box;
    }

    /* Phone input - mobile */
    .phone-prefix {
        font-size: 16px;
    }

    .auth-message {
        padding: 0.9375rem 1.125rem;
        font-size: 0.875rem;
    }

    /* OTP modal - mobile */
    .otp-modal-overlay {
        align-items: flex-start;
        padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
    }

    .otp-modal {
        padding: 1.5rem 1.25rem;
        max-height: calc(100dvh - 1.5rem);
    }


    .otp-input {
        width: 42px;
        height: 50px;
        flex-basis: 42px;
        font-size: 1.25rem;
    }

    .otp-inputs {
        gap: 6px;
        justify-content: space-between;
    }

    .registration-buttons .btn {
        padding: 0.5rem 1.125rem;
        font-size: 0.9375rem;
    }

    .form-back-link {
        font-size: 14px;
    }

}

@media (max-width: 480px) {

    /* Nadpisanie dla .container - zachowujemy pełną szerokość z mniejszym paddingiem */
    .login-register .container {
        padding: 0 0.5rem !important;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .account-type-card,
    .package-card {
        padding: 1rem;
        min-height: auto;
    }

    .account-type-features li {
        font-size: 0.8rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    /* OTP modal - małe ekrany */
    .otp-modal-overlay {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .otp-modal {
        padding: 1.25rem 1rem;
        max-height: calc(100dvh - 1rem);
    }

    .otp-input {
        width: 36px;
        height: 46px;
        flex-basis: 36px;
        font-size: 1.125rem;
    }

    .otp-inputs {
        gap: 4px;
    }

    .otp-modal-title {
        font-size: 1.125rem;
    }

}
