:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --accent: #D97706;
  --border-inactive: rgba(0, 0, 0, 0.05);
  --logo-main: #1f2937; /* Ciemny szary/antracyt */
  --logo-ai: #D97706; /* Amber brand */
}

[data-theme=dark] {
  --bg: #020617;
  --card: #1e293b;
  --text: #f8fafc;
  --accent: #FBBF24;
  --border-inactive: rgba(255, 255, 255, 0.1);
  --logo-main: #f8fafc;
  --logo-ai: #FBBF24;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/playfair-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/syne-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-italic-latin.woff2") format("woff2");
}
@keyframes authCardIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes authFieldIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes checkDraw {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.auth-split {
  display: flex;
  min-height: calc(100vh - 56px);
  font-family: "DM Sans", "Inter", sans-serif;
}

.auth-brand {
  flex: 0 0 44%;
  background: linear-gradient(160deg, #E8850A 0%, #D97706 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-bg) left center/cover no-repeat;
  pointer-events: none;
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(232, 133, 10, 0.86) 0%, rgba(217, 119, 6, 0.9) 100%);
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 360px;
}

.auth-brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.auth-brand-logo img {
  height: 56px;
  width: auto;
  max-width: 100%;
}

.auth-brand-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.auth-brand-desc {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 40px;
}

.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-brand-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
}
.auth-brand-feature .feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}

.auth-container {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-family: "DM Sans", "Inter", sans-serif;
}

.auth-card {
  background: var(--card);
  width: 100%;
  max-width: 460px;
  padding: 48px 44px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  animation: authCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.auth-card.registration-card {
  max-width: 480px;
}

.auth-header {
  margin-bottom: 36px;
}
.auth-header h2 {
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.auth-header p {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  animation: authFieldIn 0.4s ease both;
}
.auth-alert i {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}
.auth-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.auth-alert--success i {
  color: #10b981;
}
.auth-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.auth-alert--error i {
  color: #ef4444;
}
.auth-alert--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.auth-alert--info i {
  color: #3b82f6;
}

[data-theme=dark] .auth-alert--success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
[data-theme=dark] .auth-alert--error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
[data-theme=dark] .auth-alert--info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.auth-form .form-group {
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #4B5563;
  transition: color 0.3s;
}
.form-group:focus-within label {
  color: #E8850A;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrapper i {
  position: absolute;
  left: 18px;
  color: #9ca3af;
  font-size: 15px;
  transition: color 0.3s, transform 0.3s;
  z-index: 1;
  pointer-events: none;
}
.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  font-family: "DM Sans", "Inter", sans-serif;
  width: 100%;
  height: 54px;
  padding: 0 18px 0 50px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.input-wrapper input::placeholder,
.input-wrapper select::placeholder,
.input-wrapper textarea::placeholder {
  color: #9ca3af;
  font-family: "DM Mono", "Courier New", monospace;
  font-size: 14px;
  transition: opacity 0.2s ease;
}
.input-wrapper input:focus::placeholder,
.input-wrapper select:focus::placeholder,
.input-wrapper textarea:focus::placeholder {
  opacity: 0;
}
.input-wrapper input:hover,
.input-wrapper select:hover,
.input-wrapper textarea:hover {
  border-color: #d1d5db;
}
.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: #E8850A;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
  background: var(--card);
}
.input-wrapper input:focus ~ i, .input-wrapper input:focus + i,
.input-wrapper select:focus ~ i,
.input-wrapper select:focus + i,
.input-wrapper textarea:focus ~ i,
.input-wrapper textarea:focus + i {
  color: #E8850A;
  transform: scale(1.1);
}
.input-wrapper input:focus ~ i {
  color: #E8850A;
  transform: scale(1.1);
}

.input-wrapper:focus-within i {
  color: #E8850A;
  transform: scale(1.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 28px;
}
.form-options small {
  color: #6b7280;
  line-height: 1.5;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4B5563;
  cursor: pointer;
  font-size: 14px;
}
.remember-me input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #E8850A;
  border-radius: 4px;
  cursor: pointer;
}

.forgot-password {
  color: #E8850A;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}
.forgot-password:hover {
  color: #D97706;
  text-decoration: none;
}

.auth-btn {
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
  background: #E8850A;
}
.auth-btn:hover {
  background: #B45309;
  transform: translateY(-2px);
}
.auth-btn:active {
  transform: translateY(0);
}
.auth-btn i {
  transition: transform 0.3s;
}
.auth-btn:hover i {
  transform: translateX(4px);
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
}
.auth-footer a {
  color: #E8850A;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
.auth-footer a:hover {
  color: #D97706;
}

.terms-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 8px 0 28px 0;
}
.terms-option .error-message {
  margin-top: 8px;
  margin-left: 32px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}
.custom-checkbox .label-text {
  padding-top: 2px;
}
.custom-checkbox input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
  position: relative;
  background: var(--bg);
  transition: all 0.2s ease;
}
.custom-checkbox input[type=checkbox]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}
.custom-checkbox input[type=checkbox]:checked {
  background: #E8850A;
  border-color: #E8850A;
}
.custom-checkbox input[type=checkbox]:checked::after {
  transform: rotate(45deg) scale(1);
}
.custom-checkbox input[type=checkbox]:hover:not(:checked) {
  border-color: #E8850A;
}
.custom-checkbox input[type=checkbox]:focus-visible {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}
.custom-checkbox .label-text {
  user-select: none;
}
.custom-checkbox .label-text a {
  color: #E8850A;
  text-decoration: none;
  font-weight: 600;
}
.custom-checkbox .label-text a:hover {
  text-decoration: underline;
}
.custom-checkbox.has-error {
  color: #ef4444;
}
.custom-checkbox.has-error input[type=checkbox] {
  border-color: #ef4444;
}
.custom-checkbox.has-error .label-text a {
  color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: authFieldIn 0.3s ease both;
}
.error-message::before {
  content: "";
  width: 14px;
  height: 14px;
  min-width: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7.2 40.1S489.3 480 475.1 480H36.9c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8.2-40.1l216-368C225.6 39.5 238.7 32 256 32zm0 128c-13.3 0-24 10.7-24 24v112c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0-64 0 32 32 0 1 0 64 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7.2 40.1S489.3 480 475.1 480H36.9c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8.2-40.1l216-368C225.6 39.5 238.7 32 256 32zm0 128c-13.3 0-24 10.7-24 24v112c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0-64 0 32 32 0 1 0 64 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid,
.input-wrapper input.is-invalid,
.input-wrapper select.is-invalid,
.input-wrapper textarea.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}
.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus,
.form-group textarea.is-invalid:focus,
.input-wrapper input.is-invalid:focus,
.input-wrapper select.is-invalid:focus,
.input-wrapper textarea.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.input-wrapper:has(.is-invalid) i {
  color: #ef4444;
}

.form-group.has-error label {
  color: #ef4444;
}

.custom-checkbox.has-error .label-text {
  color: #ef4444;
}

.terms-option .error-message {
  margin-top: 8px;
}

.alert-danger {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-danger::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  color: #ef4444;
}

input#nip:valid:not(:placeholder-shown) {
  border-color: #10b981;
}

.auth-success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
}
.auth-success-icon.icon-mail {
  background: #fff7ed;
  color: #E8850A;
}
.auth-success-icon.icon-check {
  background: #ecfdf5;
  color: #10b981;
}

.auth-body {
  text-align: center;
}
.auth-body p {
  color: #6b7280;
  line-height: 1.7;
  font-size: 15px;
}

.info-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: #4B5563;
  line-height: 1.6;
}
.info-box p {
  margin: 4px 0;
  color: inherit;
  font-size: inherit;
}
.info-box strong {
  color: var(--text);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E8850A;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  padding: 10px 0;
}
.btn-back i {
  transition: transform 0.2s;
}
.btn-back:hover {
  color: #D97706;
}
.btn-back:hover i {
  transform: translateX(-4px);
}

.password-field-group {
  margin-bottom: 22px;
}
.password-field-group .form-group {
  margin-bottom: 0;
}

.password-strength {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}
.password-strength.is-visible {
  opacity: 1;
  max-height: 24px;
}
.password-strength .strength-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #f3f4f6;
  overflow: hidden;
}
.password-strength .strength-bar .strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  width: 0%;
}
.password-strength .strength-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  font-family: "DM Sans", "Inter", sans-serif;
  white-space: nowrap;
  min-width: 72px;
  text-align: right;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}
.password-strength[data-strength="0"] .strength-fill {
  width: 0%;
}
.password-strength[data-strength="1"] .strength-fill {
  width: 25%;
  background: #ef4444;
}
.password-strength[data-strength="1"] .strength-label {
  color: #ef4444;
}
.password-strength[data-strength="2"] .strength-fill {
  width: 50%;
  background: #f59e0b;
}
.password-strength[data-strength="2"] .strength-label {
  color: #f59e0b;
}
.password-strength[data-strength="3"] .strength-fill {
  width: 75%;
  background: #fbbf24;
}
.password-strength[data-strength="3"] .strength-label {
  color: #d97706;
}
.password-strength[data-strength="4"] .strength-fill {
  width: 100%;
  background: #10b981;
}
.password-strength[data-strength="4"] .strength-label {
  color: #10b981;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #9ca3af;
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

[data-theme=dark] .auth-card {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
[data-theme=dark] .auth-btn {
  box-shadow: none;
}
[data-theme=dark] .alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
[data-theme=dark] .form-group input.is-invalid,
[data-theme=dark] .input-wrapper input.is-invalid {
  background-color: rgba(239, 68, 68, 0.08);
}

@media (max-width: 992px) {
  .auth-split {
    flex-direction: column;
  }
  .auth-brand {
    flex: none;
    padding: 40px 24px 32px;
    min-height: auto;
  }
  .auth-brand-title {
    font-size: 24px;
  }
  .auth-brand-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .auth-brand-features {
    display: none;
  }
  .auth-brand-shapes .shape {
    display: none;
  }
  .auth-form-side {
    padding: 32px 20px;
  }
}
@media (max-width: 480px) {
  .auth-container {
    padding: 16px 12px;
    align-items: flex-start;
    padding-top: 20px;
  }
  .auth-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .auth-header h2 {
    font-size: 24px;
  }
  .auth-header p {
    font-size: 14px;
  }
  .input-wrapper input {
    height: 48px;
    font-size: 14px;
  }
  .auth-btn {
    height: 50px;
    font-size: 15px;
  }
  .form-options {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .auth-footer {
    margin-top: 24px;
    padding-top: 20px;
  }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=user-form.output.css.map */
