/* =========================
   GLOBAL
========================= */
:root {
  --bg-gradient: radial-gradient(circle at 20% -10%, rgba(255,255,255,0.14) 0, transparent 55%),
                 linear-gradient(145deg, #1f0a12 0, #5b101a 30%, #c93a10 60%, #ff9a32 100%);
  --card-bg: rgba(15, 23, 42, 0.85);
  --card-border: rgba(148, 163, 184, 0.35);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --error: #f97373;
  --input-bg: rgba(15, 23, 42, 0.8);
  --input-border: rgba(148, 163, 184, 0.5);
  --input-border-focus: #f97316;
  --shadow-soft: 0 22px 40px rgba(15, 23, 42, 0.65);
  --radius-xl: 24px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", "Segoe UI", sans-serif;
  background: #020617;
  color: var(--text-main);
}

/* =========================
   SECTION LAYOUT
========================= */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 40px);
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

/* floating glow orbs */
.auth-section::before,
.auth-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.75;
  pointer-events: none;
}
.auth-section::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #f97316 0, transparent 60%);
  top: -80px;
  right: -40px;
}
.auth-section::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #22d3ee 0, transparent 60%);
  bottom: -60px;
  left: -30px;
}

.auth-container {
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* =========================
   CARD
========================= */
.auth-card {
  position: relative;
  width: 100%;
  padding: 32px 28px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.88)
    );
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  overflow: hidden;
}

/* light edge highlight */
.auth-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  pointer-events: none;
}

/* accent top bar */
.auth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #f97316, #facc15);
  opacity: 0.75;
}

/* =========================
   TYPOGRAPHY
========================= */
.auth-title {
  margin: 8px 0 4px;
  font-size: clamp(1.6rem, 1.4rem + 0.5vw, 1.9rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #f9fafb;
}

.auth-subtitle {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* =========================
   FORM
========================= */
.auth-form-ui {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* floating-style input */
.input-control {
  width: 88%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--input-border);
  background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.16) 0, transparent 40%),
              var(--input-bg);
  padding: 11px 12px;
  padding-right: 40px;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast),
              transform var(--transition-fast);
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.18);
}

.input-control::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.input-control:focus {
  border-color: var(--input-border-focus);
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.16) 0, transparent 40%),
              var(--input-bg);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.75),
              0 12px 30px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* error text */
.input-error {
  font-size: 0.78rem;
  color: var(--error);
}

/* =========================
   ROWS & CHECKBOX
========================= */
.form-row-between {
  margin-top: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.checkbox-inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  appearance: none;
  -webkit-appearance: none;
  background: radial-gradient(circle at 30% 30%, rgba(148,163,184,0.3) 0, transparent 55%),
              rgba(15,23,42,1);
  position: relative;
  transition: all var(--transition-fast);
}

.checkbox-inline input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: radial-gradient(circle at 30% 30%, rgba(248,250,252,0.8) 0, transparent 52%),
              var(--accent);
}

.checkbox-inline input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 3px;
  border-right: 2px solid rgba(15,23,42,0.95);
  border-bottom: 2px solid rgba(15,23,42,0.95);
  transform: rotate(40deg);
}

/* =========================
   BUTTONS & LINKS
========================= */
.btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-med),
              color var(--transition-med);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.95rem;
  color: #0b1120;
  background: linear-gradient(135deg, #facc15, #fb923c, #f97316);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.22) 0, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.95);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.9);
}

.w-full {
  width: 100%;
}

/* links */
.link-muted,
.link-primary {
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.link-muted {
  color: var(--text-muted);
}

.link-muted:hover {
  color: #e5e7eb;
}

.link-primary {
  color: #fbbf24;
  font-weight: 500;
}

.link-primary:hover {
  color: #f97316;
}

/* =========================
   FOOTER TEXT
========================= */
.auth-footer-text {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 640px) {
  .auth-card {
    padding: 34px 32px 26px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 26px 22px 20px;
    border-radius: 20px;
  }
  .auth-title {
    font-size: 1.5rem;
  }
  .form-row-between {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   dashboard start ========================= */
   /* BreakTimer grid & cards */
.bt-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}
.bt-card {
    background: radial-gradient(circle at top,#020617 0,#020617 55%,#020617 100%);
    border-radius: 1rem;
    border: 1px solid rgba(148,163,184,0.25);
    box-shadow: 0 18px 45px rgba(15,23,42,0.8);
    padding: 1.1rem 1.25rem;
}
.bt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .8rem;
}
.bt-card-title {
    font-size: .95rem;
    margin: 0;
}
.bt-card-subtitle {
    font-size: .78rem;
    margin: 0;
    color: #9ca3af;
}
.bt-card-body {
    font-size: .82rem;
}
.bt-card-status {
    grid-column: 1 / 2;
}
.bt-card-breaks {
    grid-column: 2 / 3;
}
.bt-card-table {
    grid-column: 1 / 3;
}

/* Status details */
.bt-status-time {
    display: flex;
    gap: .9rem;
    align-items: center;
    font-size: .78rem;
}
.bt-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .7rem;
    color: #9ca3af;
}
.bt-value {
    font-weight: 600;
}

/* Buttons */
.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem 1.2rem;
    border-radius: 999px;
    border: none;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
}
.bt-btn-primary {
    background: linear-gradient(135deg,#22d3ee,#6366f1);
    color: #0b1120;
}
.bt-btn-danger {
    background: linear-gradient(135deg,#f97316,#dc2626);
    color: #0b1120;
}
.bt-btn:focus {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.45);
}
.bt-checkout-wrap {
    display: flex;
    justify-content: flex-start;
}

/* Break buttons */
.bt-break-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    gap: .7rem;
}
.bt-break-btn {
    border-radius: .9rem;
    border: 1px solid rgba(148,163,184,0.45);
    background: radial-gradient(circle at 10% 0%,rgba(56,189,248,.2) 0,transparent 55%);
    padding: .65rem .7rem;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: all .16s ease-out;
}
.bt-break-btn:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}
.bt-break-btn-active {
    border-color: #22c55e;
    background: radial-gradient(circle at 0% 0%,rgba(34,197,94,.28) 0,transparent 55%);
    box-shadow: 0 0 0 1px rgba(34,197,94,.8);
}
.bt-break-main {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: .4rem;
}
.bt-break-label {
    font-weight: 600;
    font-size: .85rem;
}
.bt-break-state {
    font-size: .75rem;
    color: #a5b4fc;
}
.bt-break-hint {
    margin-top: .15rem;
    font-size: .7rem;
    color: #9ca3af;
}

/* Table / empty state */
.bt-table-wrap {
    padding: .75rem;
    border-radius: .75rem;
    background: linear-gradient(135deg,rgba(15,23,42,.9),rgba(15,23,42,.95));
}
.bt-table thead th {
    border-color: rgba(148,163,184,0.35);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.bt-table tbody td {
    border-color: rgba(30,64,175,0.25);
    font-size: .78rem;
}
.bt-empty {
    padding: 1.2rem .5rem;
    text-align: center;
    color: #9ca3af;
    font-size: .82rem;
}
.bt-text-muted {
    color: #9ca3af;
}
.bt-meta {
    font-size: .72rem;
    color: #9ca3af;
}

/* Modal */
.bt-modal {
    background: radial-gradient(circle at top,#1f2937 0,#020617 55%);
    color: #e5e7eb;
    border-radius: 1rem;
    border: 1px solid rgba(148,163,184,0.4);
}
.bt-modal .modal-header {
    border-bottom-color: rgba(148,163,184,0.25);
}
.bt-modal .modal-footer {
    border-top-color: rgba(148,163,184,0.25);
}

/* Responsive */
@media (max-width: 991.98px) {
    .bt-grid {
        grid-template-columns: minmax(0,1fr);
        grid-template-rows: auto;
    }
    .bt-card-status,
    .bt-card-breaks,
    .bt-card-table {
        grid-column: 1 / 2;
    }
    .bt-status-time {
        flex-wrap: wrap;
    }
}

/*************Dashbaord UI***************/

.smart-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    grid-template-rows: auto auto;
    gap: 1.3rem;
}

/* Cards */
.smart-card {
    position: relative;
    border-radius: 1.2rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(148,163,184,0.35);
    background: radial-gradient(circle at 0% 0%,rgba(56,189,248,0.18) 0,rgba(15,23,42,0.95) 45%,rgba(15,23,42,1) 100%);
    box-shadow: 0 22px 55px rgba(15,23,42,0.85);
    backdrop-filter: blur(18px);
}
.smart-card-main {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}
.smart-card-breaks {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.smart-card-summary {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
.smart-card-table {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

/* Headers */
.smart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: .9rem;
}
.smart-eyebrow {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: .15rem;
}
.smart-title {
    font-size: 1.15rem;
    margin: 0 0 .1rem;
}
.smart-title-small {
    font-size: .95rem;
    margin: 0 0 .1rem;
}
.smart-subtitle {
    font-size: .78rem;
    color: #9ca3af;
    margin: 0;
}

/* Live pulse */
.smart-pulse {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(96,165,250,0.55);
}
.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #6b7280;
}
.dot-online {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}
.smart-pulse-text {
    font-size: .72rem;
    color: #d1d5db;
}

/* Timer layout */
.smart-timer-layout {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: .9rem;
    margin-bottom: .8rem;
}
.smart-timer-block {
    padding: .6rem .7rem;
    border-radius: .9rem;
    background: radial-gradient(circle at 0% 0%,rgba(59,130,246,0.18) 0,rgba(15,23,42,0.9) 55%);
    border: 1px solid rgba(148,163,184,0.3);
}
.smart-timer-main {
    background: radial-gradient(circle at 0% 0%,rgba(52,211,153,0.22) 0,rgba(15,23,42,0.95) 55%);
    border-color: rgba(52,211,153,0.55);
}
.smart-timer-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9ca3af;
    margin-bottom: .15rem;
}
.smart-timer-value {
    font-size: .98rem;
    font-weight: 600;
}
.smart-timer-big {
    font-size: 1.1rem;
}
.smart-timer-hint {
    margin: .15rem 0 0;
    font-size: .7rem;
    color: #9ca3af;
}

/* Buttons */
.smart-card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .75rem;
}
.smart-btn {
    border-radius: 999px;
    padding: .45rem 1.3rem;
    border: none;
    font-size: .8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}
.smart-btn-primary {
    background: linear-gradient(135deg,#22d3ee,#6366f1);
    color: #0b1120;
    box-shadow: 0 10px 30px rgba(56,189,248,0.55);
}
.smart-btn-danger {
    background: linear-gradient(135deg,#fb923c,#ef4444);
    color: #0b1120;
    box-shadow: 0 10px 30px rgba(248,113,113,0.5);
}
.smart-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(96,165,250,0.85);
}
.smart-btn-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

/* Break buttons */
.smart-break-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    gap: .6rem;
}
.smart-break-btn {
    width: 100%;
    border-radius: .95rem;
    border: 1px solid rgba(148,163,184,0.35);
    padding: .55rem .7rem;
    background: radial-gradient(circle at 0% 0%,rgba(56,189,248,0.16) 0,rgba(15,23,42,0.9) 60%);
    color: #e5e7eb;
    display: flex;
    cursor: pointer;
    transition: all .18s ease-out;
}
.smart-break-btn:hover {
    transform: translateY(-1px);
    border-color: #38bdf8;
}
.smart-break-btn-active {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34,197,94,0.8);
    background: radial-gradient(circle at 0% 0%,rgba(34,197,94,0.28) 0,rgba(15,23,42,0.96) 60%);
}
.smart-break-main {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}
.smart-break-label {
    font-size: .85rem;
    font-weight: 600;
}
.smart-break-hint {
    display: block;
    font-size: .7rem;
    color: #9ca3af;
}
.smart-break-state {
    font-size: .78rem;
    color: #a5b4fc;
}

/* Summary */
.smart-summary-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .55rem;
}
.smart-summary-item {
    border-radius: .8rem;
    padding: .55rem .65rem;
    background: rgba(15,23,42,0.95);
    border: 1px dashed rgba(148,163,184,0.4);
}
.smart-summary-label {
    font-size: .72rem;
    color: #9ca3af;
    margin-bottom: .15rem;
}
.smart-summary-value {
    font-size: .98rem;
    font-weight: 600;
}
.smart-summary-meta {
    font-size: .7rem;
    color: #a5b4fc;
}

/* Table */
.smart-table-wrap {
    border-radius: .9rem;
    background: rgba(15,23,42,0.97);
    padding: .7rem;
}
.smart-table thead th {
    border-color: rgba(148,163,184,0.35);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
}
.smart-table tbody td {
    border-color: rgba(30,64,175,0.25);
    font-size: .78rem;
}
.smart-empty {
    padding: 1rem .5rem;
    text-align: center;
    font-size: .8rem;
    color: #9ca3af;
}

/* Utility */
.smart-muted {
    font-size: .78rem;
    color: #9ca3af;
}
.smart-meta {
    font-size: .72rem;
    color: #9ca3af;
}

/* Modal */
.smart-modal {
    border-radius: 1rem;
    border: 1px solid rgba(148,163,184,0.4);
    background: radial-gradient(circle at top,#1f2937 0,#020617 55%);
    color: #e5e7eb;
}
.smart-modal .modal-header,
.smart-modal .modal-footer {
    border-color: rgba(148,163,184,0.28);
}

/* Responsive */
@media (max-width: 991.98px) {
    .smart-grid {
        grid-template-columns: minmax(0,1fr);
        grid-template-rows: auto;
    }
    .smart-card-main,
    .smart-card-breaks,
    .smart-card-summary,
    .smart-card-table {
        grid-column: 1 / 2;
        grid-row: auto;
    }
    .smart-timer-layout {
        grid-template-columns: minmax(0,1fr);
    }
}

/* Base modal overrides */
.smart-modal {
    background: radial-gradient(circle at top, #111827 0, #020617 55%);
    color: #e5e7eb;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.smart-modal .modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.7);
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22) 0, transparent 55%);
}

.smart-modal .modal-title {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.smart-modal .modal-body {
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    color: #e5e7eb;
}

.smart-modal .modal-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid rgba(55, 65, 81, 0.7);
    background: rgba(15, 23, 42, 0.95);
}

/* Backdrop darker */
.modal-backdrop.show {
    opacity: 0.75;
}

/* Close button visible on dark bg */
.btn-close.btn-close-white {
    filter: invert(1) grayscale(100%);
}

/* OK button style */
.smart-modal .btn.btn-light.btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #e5e7eb, #f9fafb);
    border: none;
    color: #111827;
}

.smart-modal .btn.btn-light.btn-sm:hover {
    background: #f3f4f6;
}


/* =========================
   dashboard end ========================= */
