/* ==========================================================================

   BizUfo - Modern Ultra-Premium SaaS Fintech Login Stylesheet

   Brand Red Aesthetic (#EB1A20) matching BizUfo Identity:

   - Clean Pearl Slate Canvas (#F8FAFC) with ambient ruby/coral radial glows

   - Floating Luminous White Card with multi-layered soft elevation

   - Prominent BizUfo Red App Badge with squircle radius & soft glow

   - Integrated Interactive Workspace Selector Card (Company & Branch)

   - iOS-Safe 16px Form Inputs with smooth crimson focus rings

   - Vibrant Brand Red CTA with tactile elevation & hover glow

   - Fullscreen Scenic Lava Blob Loader

   ========================================================================== */



[hidden] { display: none !important; }



:root {

  --canvas-bg: #F8FAFC;

  --card-bg: #FFFFFF;

  --ink-primary: #0F172A;

  --ink-secondary: #334155;

  --ink-muted: #64748B;

  --ink-subtle: #94A3B8;

  --border-subtle: #E2E8F0;

  --border-focus: #EB1A20;

  --input-bg: #F8FAFC;

  --input-focus-bg: #FFFFFF;

  --btn-primary: #EB1A20;

  --btn-primary-hover: #C81419;

  --accent-red: #EB1A20;

  --accent-red-hover: #C81419;

  --accent-red-light: #FEF2F2;

  --accent-red-subtle: #FEE2E2;

  --accent-green: #10B981;

}



html, body {

  margin: 0;

  padding: 0;

  min-height: 100%;

  min-height: 100dvh;

  background-color: var(--canvas-bg);

  color: var(--ink-primary);

  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

}



/* ==========================================================================

   Login Page Layout & Ambient Background

   ========================================================================== */

.login-page {

  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 100dvh;

  padding: 32px 16px;

  box-sizing: border-box;

  position: relative;

  overflow-x: hidden;

  background-color: #F8FAFC;

  background-image: 

    radial-gradient(at 0% 0%, rgba(235, 26, 32, 0.07) 0px, transparent 50%),

    radial-gradient(at 100% 0%, rgba(244, 63, 94, 0.06) 0px, transparent 50%),

    radial-gradient(at 50% 100%, rgba(235, 26, 32, 0.05) 0px, transparent 50%),

    radial-gradient(#E2E8F0 1.2px, transparent 1.2px);

  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;

}



/* Ambient Floating Glows for Depth & Warmth */

.ambient-glow {

  position: absolute;

  pointer-events: none;

  border-radius: 50%;

  filter: blur(90px);

  opacity: 0.65;

}



.ambient-top {

  top: -140px;

  left: 50%;

  transform: translateX(-50%);

  width: 580px;

  height: 380px;

  background: radial-gradient(circle, rgba(235, 26, 32, 0.12) 0%, rgba(244, 63, 94, 0.07) 45%, transparent 75%);

}



.ambient-bottom {

  bottom: -160px;

  right: 15%;

  width: 440px;

  height: 320px;

  background: radial-gradient(circle, rgba(235, 26, 32, 0.08) 0%, rgba(244, 63, 94, 0.04) 50%, transparent 70%);

}



.login-container {

  width: 100%;

  max-width: 440px;

  margin: auto;

  display: flex;

  justify-content: center;

  position: relative;

  z-index: 2;

}



/* ==========================================================================

   Luminous White SaaS Card

   ========================================================================== */

.login-card {

  width: 100%;

  background: #FFFFFF;

  border: 1px solid rgba(226, 232, 240, 0.95);

  border-radius: 24px;

  padding: 36px 32px 30px;

  box-shadow: 

    0 24px 50px -12px rgba(15, 23, 42, 0.09),

    0 4px 16px -2px rgba(15, 23, 42, 0.03),

    0 0 0 1px rgba(255, 255, 255, 0.9) inset;

  box-sizing: border-box;

  position: relative;

  animation: cardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;

}



@keyframes cardPop {

  from {

    transform: translateY(8px) scale(0.99);

  }

  to {

    transform: translateY(0) scale(1);

  }

}



.login-card.shake {

  animation: cardShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;

}



@keyframes cardShake {

  0%, 100% { transform: translateX(0); }

  20%      { transform: translateX(-8px); }

  40%      { transform: translateX(8px); }

  60%      { transform: translateX(-5px); }

  80%      { transform: translateX(5px); }

}



/* ==========================================================================

   Brand Hero Header (Logo + Title + Tagline)

   ========================================================================== */

.login-brand-hero {

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  margin-bottom: 24px;

}



.brand-badge-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.login-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 
    0 12px 28px -4px rgba(235, 26, 32, 0.36),
    0 4px 10px rgba(15, 23, 42, 0.06);
  border: 2px solid #FFFFFF;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand-logo:hover {
  transform: scale(1.05) rotate(-1deg);
}

.brand-text-block {

  display: flex;

  flex-direction: column;

  align-items: center;

}



.brand-display-name {

  font-size: 28px;

  font-weight: 800;

  letter-spacing: -0.04em;

  color: #0F172A;

  margin: 0 0 4px;

  line-height: 1.15;

}



.brand-display-accent {

  color: #EB1A20;

}



.brand-tagline-text {

  font-size: 13.5px;

  font-weight: 500;

  color: #64748B;

  margin: 0;

  letter-spacing: -0.01em;

}



/* ==========================================================================

   Integrated Workspace Switcher Card

   ========================================================================== */

.workspace-card-wrapper {

  margin-bottom: 22px;

}



.workspace-pill-card {

  width: 100%;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 10px 14px;

  background: #F8FAFC;

  border: 1.5px solid #E2E8F0;

  border-radius: 14px;

  cursor: pointer;

  text-align: left;

  font-family: inherit;

  box-sizing: border-box;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}



.workspace-pill-card:hover {

  background: #FEF2F2;

  border-color: #FCA5A5;

  transform: translateY(-1px);

  box-shadow: 0 4px 14px rgba(235, 26, 32, 0.08);

}



.workspace-pill-card:focus-visible {

  outline: none;

  border-color: #EB1A20;

  box-shadow: 0 0 0 3.5px rgba(235, 26, 32, 0.15);

}



.workspace-pill-left {

  display: flex;

  align-items: center;

  gap: 10px;

  min-width: 0;

  flex: 1;

}



.workspace-indicator-icon {

  width: 32px;

  height: 32px;

  border-radius: 9px;

  background: #FEE2E2;

  color: #EB1A20;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}



.workspace-indicator-icon svg {

  width: 17px;

  height: 17px;

}



.workspace-details-column {

  min-width: 0;

  flex: 1;

}



.workspace-pretitle {

  display: block;

  font-size: 10px;

  font-weight: 700;

  color: #94A3B8;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  margin-bottom: 2px;

}



.workspace-names-wrap {

  display: flex;

  align-items: center;

  gap: 6px;

  font-size: 13px;

  color: #1E293B;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.workspace-name-primary {

  font-weight: 600;

  color: #0F172A;

  overflow: hidden;

  text-overflow: ellipsis;

}



.workspace-sep {

  color: #CBD5E1;

  font-size: 9px;

  flex-shrink: 0;

}



.workspace-name-secondary {

  font-weight: 500;

  color: #64748B;

  overflow: hidden;

  text-overflow: ellipsis;

}



.workspace-pill-right {

  display: flex;

  align-items: center;

  gap: 6px;

  flex-shrink: 0;

}



.workspace-code-badge {

  font-size: 11px;

  font-weight: 700;

  padding: 3px 7px;

  background: #FEE2E2;

  color: #EB1A20;

  border-radius: 6px;

  letter-spacing: 0.04em;

  text-transform: uppercase;

}



.workspace-chevron {

  width: 15px;

  height: 15px;

  color: #94A3B8;

  transition: transform 0.15s ease, color 0.15s ease;

}



.workspace-pill-card:hover .workspace-chevron {

  color: #EB1A20;

  transform: translateX(1px);

}



/* ==========================================================================

   Error Alert Banner

   ========================================================================== */

.alert {

  padding: 11px 14px;

  border-radius: 12px;

  font-size: 13px;

  font-weight: 500;

  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 20px;

}



.alert-danger {

  background: #FEF2F2;

  border: 1px solid #FEE2E2;

  color: #DC2626;

}



.alert-hidden {

  display: none !important;

}



/* ==========================================================================

   Form Groups & Inputs

   ========================================================================== */

.form-group {

  margin-bottom: 18px;

}



.input-label {

  display: block;

  font-size: 13px;

  font-weight: 600;

  color: #334155;

  margin-bottom: 7px;

}



.input-wrapper {

  position: relative;

  display: flex;

  align-items: center;

}



.input-icon-left {

  position: absolute;

  left: 14px;

  display: flex;

  align-items: center;

  color: #94A3B8;

  pointer-events: none;

  transition: color 0.15s ease;

}



.input-icon-left svg {

  width: 18px;

  height: 18px;

}



.premium-input {

  width: 100%;

  height: 48px;

  padding: 0 14px 0 44px;

  background: #F8FAFC;

  border: 1.5px solid #E2E8F0;

  border-radius: 12px;

  font-size: 16px; /* 16px ensures zero iOS auto-zoom */

  color: #0F172A;

  font-family: inherit;

  box-sizing: border-box;

  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);

}



.premium-input:focus {

  outline: none;

  background: #FFFFFF;

  border-color: #EB1A20;

  box-shadow: 0 0 0 3.5px rgba(235, 26, 32, 0.14);

}



.input-wrapper:focus-within .input-icon-left {

  color: #EB1A20;

}



.password-input-wrapper .password-input {

  padding-right: 48px;

}



.password-toggle-btn {

  position: absolute;

  right: 6px;

  background: transparent;

  border: none;

  width: 44px;

  height: 44px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #94A3B8;

  cursor: pointer;

  border-radius: 8px;

  transition: all 0.15s ease;

}



.password-toggle-btn:hover {

  color: #0F172A;

  background: #F1F5F9;

}



.password-toggle-btn svg {

  width: 19px;

  height: 19px;

}



/* ==========================================================================

   Remember Device Row

   ========================================================================== */

.remember-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin: 14px 0 22px;

}



.checkbox-label {

  display: inline-flex;

  align-items: center;

  gap: 8.5px;

  cursor: pointer;

  user-select: none;

}



.custom-checkbox {

  width: 18px;

  height: 18px;

  border: 1.5px solid #CBD5E1;

  border-radius: 5px;

  background: #FFFFFF;

  display: flex;

  align-items: center;

  justify-content: center;

  transition: all 0.15s ease;

}



.checkbox-label:hover .custom-checkbox {

  border-color: #EB1A20;

}



.checkbox-check {

  width: 12px;

  height: 12px;

  stroke: #FFFFFF;

  opacity: 0;

  transform: scale(0.6);

  transition: all 0.15s ease;

}



input[type="checkbox"]:checked + .custom-checkbox {

  background: #EB1A20;

  border-color: #EB1A20;

}



input[type="checkbox"]:checked + .custom-checkbox .checkbox-check {

  opacity: 1;

  transform: scale(1);

}



.remember-text {

  font-size: 13px;

  font-weight: 500;

  color: #475569;

}



/* ==========================================================================

   Primary Action CTA Button (Vibrant BizUfo Red)

   ========================================================================== */

.btn-premium {

  width: 100%;

  height: 48px;

  background: linear-gradient(135deg, #EB1A20 0%, #C81419 100%);

  color: #FFFFFF;

  border: 1px solid #C81419;

  border-top: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 12px;

  font-size: 15px;

  font-weight: 700;

  letter-spacing: -0.01em;

  cursor: pointer;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  box-shadow: 

    0 6px 18px rgba(235, 26, 32, 0.32),

    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);

  font-family: inherit;

}



.btn-premium:hover {

  background: linear-gradient(135deg, #F0232A 0%, #D1151A 100%);

  transform: translateY(-1px);

  box-shadow: 

    0 8px 24px rgba(235, 26, 32, 0.40),

    inset 0 1px 0 rgba(255, 255, 255, 0.25);

}



.btn-premium:active {

  transform: translateY(0) scale(0.99);

  box-shadow: 0 2px 8px rgba(235, 26, 32, 0.25);

}



.btn-premium:disabled {

  opacity: 0.65;

  cursor: not-allowed;

  transform: none;

}



.spinner {

  width: 18px;

  height: 18px;

  border: 2.5px solid rgba(255, 255, 255, 0.35);

  border-top-color: #FFFFFF;

  border-radius: 50%;

  animation: spin 0.7s linear infinite;

}



@keyframes spin {

  to { transform: rotate(360deg); }

}



.check-icon {

  width: 18px;

  height: 18px;

}



/* ==========================================================================

   Card Footer

   ========================================================================== */

.card-footer {

  text-align: center;

  margin-top: 24px;

  padding-top: 18px;

  border-top: 1px solid #F1F5F9;

}



.footer-tagline {

  font-size: 12px;

  font-weight: 500;

  color: #94A3B8;

  margin: 0;

  letter-spacing: 0.01em;

}



/* ==========================================================================

   Company & Branch Modal

   ========================================================================== */

.company-modal-overlay {

  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 16px;

  box-sizing: border-box;

}



.company-modal-backdrop {

  position: absolute;

  inset: 0;

  background: rgba(15, 23, 42, 0.65);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  animation: fadeIn 0.2s ease-out;

}



@keyframes fadeIn {

  from { opacity: 0; }

  to { opacity: 1; }

}



.company-modal-card {

  position: relative;

  width: 100%;

  max-width: 480px;

  background: #FFFFFF;

  border-radius: 20px;

  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);

  display: flex;

  flex-direction: column;

  max-height: 85vh;

  box-sizing: border-box;

  animation: modalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;

}



@keyframes modalSlide {

  from {

    opacity: 0;

    transform: translateY(20px) scale(0.97);

  }

  to {

    opacity: 1;

    transform: translateY(0) scale(1);

  }

}



.modal-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 20px 22px 16px;

  border-bottom: 1px solid #F1F5F9;

}



.modal-header-titles {

  display: flex;

  align-items: center;

  gap: 12px;

}



.modal-icon-badge {

  width: 38px;

  height: 38px;

  border-radius: 10px;

  background: #FEE2E2;

  color: #EB1A20;

  display: flex;

  align-items: center;

  justify-content: center;

}



.modal-icon-badge svg {

  width: 20px;

  height: 20px;

}



.modal-title {

  font-size: 17px;

  font-weight: 700;

  color: #0F172A;

  margin: 0;

}



.modal-subtitle {

  font-size: 12.5px;

  color: #64748B;

  margin: 2px 0 0;

}



.modal-close-btn {

  background: transparent;

  border: none;

  width: 36px;

  height: 36px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #94A3B8;

  cursor: pointer;

  border-radius: 8px;

  transition: all 0.15s ease;

}



.modal-close-btn:hover {

  background: #F1F5F9;

  color: #0F172A;

}



/* ==========================================================================

   Company Workspace Code Verification & Branch Selection Modal

   ========================================================================== */

.code-entry-box {

  padding: 16px 22px 12px;

}



.code-entry-label {

  display: block;

  font-size: 11.5px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  color: #64748B;

  margin-bottom: 8px;

}



.code-input-row {

  display: flex;

  gap: 10px;

  align-items: center;

}



.code-input-wrap {

  position: relative;

  flex: 1;

  display: flex;

  align-items: center;

}



.code-input-icon {

  position: absolute;

  left: 14px;

  width: 17px;

  height: 17px;

  color: #94A3B8;

  pointer-events: none;

}



.code-text-input {

  width: 100%;

  height: 44px;

  padding: 0 14px 0 38px;

  background: #F8FAFC;

  border: 1.5px solid #CBD5E1;

  border-radius: 10px;

  font-size: 15px;

  font-weight: 700;

  letter-spacing: 0.06em;

  color: #0F172A;

  text-transform: uppercase;

  font-family: inherit;

  box-sizing: border-box;

  transition: all 0.15s ease;

}



.code-text-input:focus {

  outline: none;

  background: #FFFFFF;

  border-color: #EB1A20;

  box-shadow: 0 0 0 3px rgba(235, 26, 32, 0.12);

}



.btn-verify-action {

  height: 44px;

  padding: 0 20px;

  background: #EB1A20;

  color: #FFFFFF;

  border: 1px solid #EB1A20;

  border-radius: 10px;

  font-size: 14px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.15s ease;

  font-family: inherit;

  flex-shrink: 0;

  box-shadow: 0 2px 8px rgba(235, 26, 32, 0.28);

}



.btn-verify-action:hover {

  background: #C81419;

  border-color: #C81419;

  box-shadow: 0 4px 12px rgba(235, 26, 32, 0.35);

  transform: translateY(-1px);

}



.btn-verify-action:disabled {

  opacity: 0.6;

  cursor: not-allowed;

  transform: none;

}



.code-status-msg {

  font-size: 12.5px;

  font-weight: 600;

  margin-top: 8px;

  padding: 6px 10px;

  border-radius: 8px;

}



.code-status-msg.is-error {

  color: #DC2626;

  background: #FEF2F2;

  border: 1px solid #FEE2E2;

}



.company-branches-section {

  padding: 4px 22px 18px;

  overflow-y: auto;

}



.verified-company-card {

  background: #FFFFFF;

  border: 1.5px solid #EB1A20;

  border-radius: 14px;

  padding: 16px;

  box-shadow: 0 4px 16px rgba(235, 26, 32, 0.08);

}



.verified-card-top {

  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 14px;

}



.verified-avatar {

  width: 38px;

  height: 38px;

  border-radius: 10px;

  background: #FEE2E2;

  color: #EB1A20;

  font-size: 14px;

  font-weight: 800;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}



.verified-info {

  flex: 1;

  min-width: 0;

}



.verified-name {

  font-size: 15px;

  font-weight: 700;

  color: #0F172A;

  display: block;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.verified-sub {

  font-size: 12px;

  color: #64748B;

  display: block;

  margin-top: 2px;

}



.verified-code-pill {

  background: #FEF2F2;

  border: 1px solid #FEE2E2;

  color: #EB1A20;

  padding: 3px 8px;

  border-radius: 6px;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.04em;

  flex-shrink: 0;

}



.branch-select-box {

  border-top: 1px solid #F1F5F9;

  padding-top: 12px;

}



.branch-choose-label {

  font-size: 11.5px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.04em;

  color: #475569;

  margin-bottom: 8px;

  display: block;

}



.branch-chips-row {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.branch-chip-btn {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 7px 14px;

  background: #F8FAFC;

  border: 1px solid #CBD5E1;

  border-radius: 8px;

  font-size: 13px;

  font-weight: 600;

  color: #334155;

  cursor: pointer;

  transition: all 0.15s ease;

  font-family: inherit;

}



.branch-chip-btn:hover {

  background: #FFFFFF;

  border-color: #94A3B8;

  transform: translateY(-1px);

}



.branch-chip-btn.is-active-branch {

  background: #EB1A20;

  border-color: #EB1A20;

  color: #FFFFFF;

  font-weight: 700;

  box-shadow: 0 2px 8px rgba(235, 26, 32, 0.3);

}



.branch-dot {

  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: currentColor;

}



.code-prompt-panel {

  padding: 24px 22px 20px;

  text-align: center;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;

}



.prompt-icon-ring {

  width: 50px;

  height: 50px;

  border-radius: 50%;

  background: #FEF2F2;

  color: #EB1A20;

  display: flex;

  align-items: center;

  justify-content: center;

}



.prompt-heading {

  font-size: 15px;

  font-weight: 700;

  color: #0F172A;

  margin: 0;

}



.prompt-description {

  font-size: 12.5px;

  color: #64748B;

  margin: 0;

  max-width: 320px;

  line-height: 1.5;

}



.modal-footer {

  padding: 14px 22px 20px;

  border-top: 1px solid #F1F5F9;

}



/* ==========================================================================

   Screen Loader Overlay & Animations

   1. Regular Company Loader (From Uiverse.io by andrew-manzyk)

   2. Super Admin Loader (From Uiverse.io by ZacharyCrespin)

   ========================================================================== */

.screen-loader-overlay {

  position: fixed;

  inset: 0;

  z-index: 2000;

  background: rgba(15, 23, 42, 0.85);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  display: flex;

  align-items: center;

  justify-content: center;

}



.screen-loader-content {

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  color: #FFFFFF;

}



/* From Uiverse.io by andrew-manzyk */ 

.loader {

  --color-one: #ffbf48;

  --color-two: #be4a1d;

  --color-three: #ffbf4780;

  --color-four: #bf4a1d80;

  --color-five: #ffbf4740;

  --time-animation: 2s;

  --size: 1; /* You can change the size */

  position: relative;

  width: 100px;

  height: 100px;

  margin-bottom: 24px;

  border-radius: 50%;

  transform: scale(var(--size));

  box-shadow:

    0 0 25px 0 var(--color-three),

    0 20px 50px 0 var(--color-four);

  animation: colorize calc(var(--time-animation) * 3) ease-in-out infinite;

}



.loader::before {

  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100px;

  height: 100px;

  border-radius: 50%;

  border-top: solid 1px var(--color-one);

  border-bottom: solid 1px var(--color-two);

  background: linear-gradient(180deg, var(--color-five), var(--color-four));

  box-shadow:

    inset 0 10px 10px 0 var(--color-three),

    inset 0 -10px 10px 0 var(--color-four);

}



.loader .box {

  width: 100px;

  height: 100px;

  background: linear-gradient(

    180deg,

    var(--color-one) 30%,

    var(--color-two) 70%

  );

  mask: url(#clipping);

  -webkit-mask: url(#clipping);

}



.loader svg {

  position: absolute;

  top: 0;

  left: 0;

}



.loader svg #clipping {

  filter: contrast(15);

  animation: roundness calc(var(--time-animation) / 2) linear infinite;

}



.loader svg #clipping polygon {

  filter: blur(7px);

}



.loader svg #clipping polygon:nth-child(1) {

  transform-origin: 75% 25%;

  transform: rotate(90deg);

}



.loader svg #clipping polygon:nth-child(2) {

  transform-origin: 50% 50%;

  animation: rotation var(--time-animation) linear infinite reverse;

}



.loader svg #clipping polygon:nth-child(3) {

  transform-origin: 50% 60%;

  animation: rotation var(--time-animation) linear infinite;

  animation-delay: calc(var(--time-animation) / -3);

}



.loader svg #clipping polygon:nth-child(4) {

  transform-origin: 40% 40%;

  animation: rotation var(--time-animation) linear infinite reverse;

}



.loader svg #clipping polygon:nth-child(5) {

  transform-origin: 40% 40%;

  animation: rotation var(--time-animation) linear infinite reverse;

  animation-delay: calc(var(--time-animation) / -2);

}



.loader svg #clipping polygon:nth-child(6) {

  transform-origin: 60% 40%;

  animation: rotation var(--time-animation) linear infinite;

}



.loader svg #clipping polygon:nth-child(7) {

  transform-origin: 60% 40%;

  animation: rotation var(--time-animation) linear infinite;

  animation-delay: calc(var(--time-animation) / -1.5);

}



@keyframes rotation {

  0% {

    transform: rotate(0deg);

  }

  100% {

    transform: rotate(360deg);

  }

}



@keyframes roundness {

  0% {

    filter: contrast(15);

  }

  20% {

    filter: contrast(3);

  }

  40% {

    filter: contrast(3);

  }

  60% {

    filter: contrast(15);

  }

  100% {

    filter: contrast(15);

  }

}



@keyframes colorize {

  0% {

    filter: hue-rotate(0deg);

  }

  20% {

    filter: hue-rotate(-30deg);

  }

  40% {

    filter: hue-rotate(-60deg);

  }

  60% {

    filter: hue-rotate(-90deg);

  }

  80% {

    filter: hue-rotate(-45deg);

  }

  100% {

    filter: hue-rotate(0deg);

  }

}



/* Super Admin Squares Loader (Untouched, kept separate) */

.admin-squares-loader {

  position: relative;

  width: 96px;

  height: 96px;

  transform: rotate(45deg);

  margin: 24px auto 32px;

}



.admin-squares-loader .loader-square {

  position: absolute;

  top: 0;

  left: 0;

  width: 28px;

  height: 28px;

  margin: 2px;

  border-radius: 2px;

  background: #FFFFFF;

  animation: square-animation 10s ease-in-out infinite both;

}



.admin-squares-loader .loader-square:nth-of-type(1) { animation-delay: 0s; }

.admin-squares-loader .loader-square:nth-of-type(2) { animation-delay: -1.4285714286s; }

.admin-squares-loader .loader-square:nth-of-type(3) { animation-delay: -2.8571428571s; }

.admin-squares-loader .loader-square:nth-of-type(4) { animation-delay: -4.2857142857s; }

.admin-squares-loader .loader-square:nth-of-type(5) { animation-delay: -5.7142857143s; }

.admin-squares-loader .loader-square:nth-of-type(6) { animation-delay: -7.1428571429s; }

.admin-squares-loader .loader-square:nth-of-type(7) { animation-delay: -8.5714285714s; }

.admin-squares-loader .loader-square:nth-of-type(8) { animation-delay: -10s; }



@keyframes square-animation {

  0% { left: 0; top: 0; }

  10.5% { left: 0; top: 0; }

  12.5% { left: 32px; top: 0; }

  23% { left: 32px; top: 0; }

  25% { left: 64px; top: 0; }

  35.5% { left: 64px; top: 0; }

  37.5% { left: 64px; top: 32px; }

  48% { left: 64px; top: 32px; }

  50% { left: 32px; top: 32px; }

  60.5% { left: 32px; top: 32px; }

  62.5% { left: 32px; top: 64px; }

  73% { left: 32px; top: 64px; }

  75% { left: 0; top: 64px; }

  85.5% { left: 0; top: 64px; }

  87.5% { left: 0; top: 32px; }

  98% { left: 0; top: 32px; }

  100% { left: 0; top: 0; }

}



.screen-loader-text {

  font-size: 15px;

  font-weight: 600;

  color: #F8FAFC;

  margin: 0;

  letter-spacing: -0.01em;

}





/* ==========================================================================

   Responsive Adaptations (Mobile & Small Viewports)

   ========================================================================== */

@media (max-width: 480px) {

  .company-modal-overlay {

    align-items: flex-end;

    padding: 0;

  }

  .company-modal-card {

    border-radius: 24px 24px 0 0;

    max-height: 85vh;

    border-bottom-left-radius: 0;

    border-bottom-right-radius: 0;

  }

  .login-page {

    padding: 16px 12px;

  }

  .login-card {

    padding: 28px 20px 22px;

    border-radius: 20px;

  }

  .login-brand-logo {

    width: 56px;

    height: 56px;

  }

  .brand-display-name {

    font-size: 25px;

  }

  .workspace-pill-card {

    padding: 9px 12px;

  }

  .workspace-indicator-icon {

    width: 28px;

    height: 28px;

  }

  .workspace-names-wrap {

    font-size: 12px;

  }

}

