﻿@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@700;800&family=Tajawal:wght@400;500;700;800&display=swap");

:root {
  --font-body: "Tajawal", "Segoe UI", sans-serif;
  --font-heading: "Cairo", "Tajawal", sans-serif;

  --bg-surface: #f2fbff;
  --bg-surface-alt: #edf5ff;
  --bg-card: #ffffff;

  --text-main: #0f2438;
  --text-muted: #4b6882;
  --text-soft: #5f7f9d;

  --brand-blue: #0ea5e9;
  --brand-cyan: #14b8a6;
  --brand-royal: #2563eb;
  --brand-orange: #f97316;
  --brand-amber: #f59e0b;

  --success-bg: #e9fdf0;
  --success-border: #74e4a3;
  --success-text: #12633f;

  --reply-bg: #fff9e8;
  --reply-border: #f7ca5a;
  --reply-text: #8a5507;

  --fail-bg: #fff1f1;
  --fail-border: #ff9d9d;
  --fail-text: #ab1f1f;

  --info-bg: #ecf6ff;
  --info-border: #8ec5ff;
  --info-text: #1f5fb7;

  --shadow-soft: 0 14px 34px rgba(8, 42, 74, 0.12);
  --shadow-card: 0 16px 36px rgba(15, 44, 72, 0.14);
  --shadow-hover: 0 22px 42px rgba(8, 44, 76, 0.2);
  --ring-focus: 0 0 0 0.24rem rgba(14, 165, 233, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  margin-bottom: 84px;
  color: var(--text-main);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 8% -8%, rgba(20, 184, 166, 0.28), transparent 35%),
    radial-gradient(circle at 96% 4%, rgba(14, 165, 233, 0.24), transparent 33%),
    radial-gradient(circle at 78% 94%, rgba(249, 115, 22, 0.12), transparent 42%),
    linear-gradient(130deg, var(--bg-surface) 0%, var(--bg-surface-alt) 44%, #f9fcff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -90px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(14, 165, 233, 0) 68%);
  animation: floatBlob 11s ease-in-out infinite;
}

body::after {
  width: 380px;
  height: 380px;
  bottom: -150px;
  left: -120px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0) 66%);
  animation: floatBlob 14s ease-in-out infinite reverse;
}

a {
  color: #0f6ed8;
  text-decoration: none;
}

a:hover {
  color: #1557b7;
}

.app-root {
  min-height: 100vh;
}

.app-shell {
  width: min(1340px, calc(100% - 2rem));
  margin-inline: auto;
}

.app-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(159, 205, 244, 0.55);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 12px 28px rgba(10, 44, 78, 0.08);
  padding: 0.72rem 0;
}

.app-navbar::after {
  content: "";
  position: absolute;
  right: 1rem;
  left: 1rem;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0), rgba(14, 165, 233, 0.8), rgba(20, 184, 166, 0.8), rgba(14, 165, 233, 0));
}

.app-brand {
  color: var(--text-main);
}

.app-brand:hover {
  color: var(--text-main);
}

.app-brand-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: linear-gradient(150deg, var(--brand-cyan), var(--brand-blue), var(--brand-royal));
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.34);
}

.app-brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.12;
}

.app-brand-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.app-brand-subtitle {
  font-size: 0.74rem;
  color: var(--text-soft);
  font-weight: 600;
}

.app-nav-links {
  flex-wrap: wrap;
}

.app-nav-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.1;
  padding: 0.6rem 0.95rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.app-nav-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(14, 165, 233, 0.32);
  filter: saturate(1.07);
}

.app-nav-btn--ghost {
  color: #0f5f9f;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.34);
  box-shadow: none;
}

.app-nav-btn--ghost:hover {
  color: #084f86;
  border-color: rgba(14, 165, 233, 0.56);
  background: #f5fbff;
  box-shadow: 0 8px 18px rgba(15, 95, 159, 0.13);
}

.app-main {
  padding-top: 1.35rem;
  padding-bottom: 2.2rem;
}

.app-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid rgba(163, 207, 244, 0.5);
  color: #2c587b;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  line-height: 1.35;
  padding: 0.9rem 0;
}

.surface-card {
  border-radius: 24px;
  border: 1px solid rgba(177, 216, 245, 0.78);
  background: linear-gradient(154deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: var(--shadow-card);
}

.page-hero {
  border-radius: 18px;
  padding: 1.05rem 1.1rem;
  background: linear-gradient(128deg, rgba(14, 165, 233, 0.13) 0%, rgba(20, 184, 166, 0.14) 46%, rgba(249, 115, 22, 0.12) 100%);
  border: 1px solid rgba(151, 209, 240, 0.55);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 800;
  color: #0e3458;
}

.page-hero-subtitle {
  color: #346085;
  font-size: 0.92rem;
  font-weight: 600;
}

.gateway-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(145, 209, 246, 0.66);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 251, 255, 0.97) 45%, rgba(232, 247, 255, 0.98) 100%);
  box-shadow: var(--shadow-card);
  animation: riseIn 0.56s ease both;
}

.gateway-hero::before,
.gateway-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.gateway-hero::before {
  width: 240px;
  height: 240px;
  top: -120px;
  left: -40px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
}

.gateway-hero::after {
  width: 220px;
  height: 220px;
  bottom: -112px;
  right: -56px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0) 70%);
}

.gateway-hero-content {
  position: relative;
  z-index: 1;
}

.gateway-hero-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0f7bb0;
  text-transform: uppercase;
}

.gateway-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  color: #0d365f;
  font-weight: 800;
}

.gateway-hero-subtitle {
  color: #3a678d;
  font-weight: 600;
  max-width: 74ch;
}

.gateway-hero-chips {
  position: relative;
  z-index: 1;
  margin-top: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chip {
  border-radius: 999px;
  padding: 0.34rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: #ffffff;
}

.hero-chip--success {
  color: var(--success-text);
  background: var(--success-bg);
  border-color: var(--success-border);
}

.hero-chip--reply {
  color: var(--reply-text);
  background: var(--reply-bg);
  border-color: var(--reply-border);
}

.hero-chip--fail {
  color: var(--fail-text);
  background: var(--fail-bg);
  border-color: var(--fail-border);
}

.hero-chip--info {
  color: var(--info-text);
  background: var(--info-bg);
  border-color: var(--info-border);
}

.status-message {
  display: none;
  border-radius: 14px;
  padding: 0.72rem 0.9rem;
  margin-bottom: 0.62rem;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(17, 55, 84, 0.06);
  animation: fadeSlide 0.28s ease both;
}

.status-message.is-visible {
  display: block;
}

.status-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

.status-warning {
  background: #fff5e8;
  color: #994f06;
  border-color: #fac48c;
}

.status-error {
  background: var(--fail-bg);
  color: var(--fail-text);
  border-color: var(--fail-border);
}

.status-info {
  background: var(--info-bg);
  color: var(--info-text);
  border-color: var(--info-border);
}

.send-sms-page,
.api-page {
  direction: rtl;
}

.send-sms-page .status-card,
.api-page .status-card {
  border-radius: 22px;
  background: linear-gradient(156deg, rgba(255, 255, 255, 0.94) 0%, rgba(242, 250, 255, 0.96) 100%);
  border: 1px solid rgba(173, 216, 243, 0.72);
  box-shadow: var(--shadow-card);
  animation: riseIn 0.56s ease both;
}

.send-sms-page .status-card h4,
.api-page .status-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #0f3b62;
}

.send-sms-page .form-card .form-label {
  font-weight: 800;
  color: #21496d;
  margin-bottom: 0.42rem;
}

.send-sms-page .form-card .form-control,
.auth-form .form-control {
  border-radius: 14px;
  border: 1px solid rgba(161, 210, 242, 0.86);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--text-main);
  font-weight: 600;
}

.send-sms-page .form-card .form-control:focus,
.auth-form .form-control:focus {
  border-color: rgba(14, 165, 233, 0.75);
  box-shadow: var(--ring-focus);
}

.send-sms-page .action-row .btn {
  border-radius: 13px;
  font-weight: 800;
  border-width: 1px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.send-sms-page .action-row .btn:hover {
  transform: translateY(-1px);
}

.send-sms-page .action-row #btSend {
  border: 0;
  color: #ffffff;
  background: linear-gradient(138deg, #10b981 0%, #0ea76d 100%);
  box-shadow: 0 12px 18px rgba(16, 185, 129, 0.28);
}

.send-sms-page .action-row #btStop {
  border-color: #ff9595;
  color: #a32121;
  background: #fff6f6;
}

.send-sms-page .action-row #btContinue {
  border-color: #8ec5ff;
  color: #1f5fb7;
  background: #f3f9ff;
}

.send-sms-page .metric-grid,
.api-page .metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.send-sms-page .metric-tile,
.api-page .metric-tile {
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 252, 255, 0.98) 100%);
  border: 1px solid rgba(167, 214, 244, 0.72);
  padding: 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 8px 15px rgba(17, 58, 89, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.send-sms-page .metric-tile:hover,
.api-page .metric-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px rgba(17, 58, 89, 0.12);
}

.send-sms-page .metric-tile span,
.api-page .metric-tile span {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.send-sms-page .metric-tile strong,
.api-page .metric-tile strong {
  color: #0f2f4e;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1;
}

.send-sms-page .provider-status-wrap,
.api-page .provider-status-wrap {
  border-radius: 16px;
  border: 1px solid rgba(167, 214, 244, 0.72);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 252, 255, 0.98) 100%);
  padding: 0.8rem;
  box-shadow: 0 8px 15px rgba(17, 58, 89, 0.06);
}

.provider-status-title {
  margin: 0 0 0.55rem;
  color: #21496d;
  font-size: 0.86rem;
  font-weight: 800;
}

.provider-status-list {
  display: grid;
  gap: 0.45rem;
}

.provider-status-item {
  border: 1px solid rgba(167, 214, 244, 0.72);
  border-radius: 12px;
  padding: 0.48rem 0.56rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #ffffff;
}

.provider-status-item strong {
  color: #0f2f4e;
  font-size: 0.8rem;
  font-weight: 800;
}

.provider-chip {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.provider-chip--online {
  color: #0f6a43;
  background: #e7f9ef;
  border-color: #8ae3b3;
}

.provider-chip--busy {
  color: #8a5507;
  background: #fff5dc;
  border-color: #f4cc73;
}

.provider-chip--offline {
  color: #8c2630;
  background: #fff1f1;
  border-color: #f0a5a5;
}

.provider-chip--api {
  color: #1f5fb7;
  background: #ecf6ff;
  border-color: #8ec5ff;
}

.provider-status-empty {
  border: 1px dashed rgba(149, 201, 236, 0.95);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  color: #50718f;
  font-size: 0.82rem;
  font-weight: 700;
  background: #f8fbff;
}

.send-sms-page .result-card,
.api-page .result-card {
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(171, 216, 244, 0.75);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: riseIn 0.56s ease both;
}

.send-sms-page .result-card:hover,
.api-page .result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.send-sms-page .col-md-4:nth-child(1) .result-card,
.api-page .col-md-4:nth-child(1) .result-card {
  animation-delay: 0.08s;
}

.send-sms-page .col-md-4:nth-child(2) .result-card,
.api-page .col-md-4:nth-child(2) .result-card {
  animation-delay: 0.16s;
}

.send-sms-page .col-md-4:nth-child(3) .result-card,
.api-page .col-md-4:nth-child(3) .result-card {
  animation-delay: 0.24s;
}

.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.62rem;
  border: 0;
  padding: 0.95rem 1rem 0.38rem;
}

.result-card--success .result-card-header {
  background: linear-gradient(162deg, #ecfdf3 0%, #dcfce7 100%);
}

.result-card--reply .result-card-header {
  background: linear-gradient(162deg, #fff9e7 0%, #fef0c3 100%);
}

.result-card--fail .result-card-header {
  background: linear-gradient(162deg, #fff2f2 0%, #fee2e2 100%);
}

.result-title {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.result-title-success {
  color: #117143;
}

.result-title-reply {
  color: #9f5f08;
}

.result-title-fail {
  color: #af1f1f;
}

.result-subtitle {
  color: #486988;
  font-size: 0.78rem;
  font-weight: 700;
}

.result-badge {
  min-width: 2.1rem;
  text-align: center;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.79rem;
  font-weight: 800;
  border: 1px solid transparent;
  background: #ffffff;
}

.result-badge--success {
  color: var(--success-text);
  border-color: var(--success-border);
}

.result-badge--reply {
  color: var(--reply-text);
  border-color: var(--reply-border);
}

.result-badge--fail {
  color: var(--fail-text);
  border-color: var(--fail-border);
}

.result-list {
  min-height: 24rem;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.74rem;
}

.api-page .result-list {
  min-height: 18rem;
}

.result-list::-webkit-scrollbar {
  width: 10px;
}

.result-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid #f2f8ff;
  background: #b4d8f5;
}

.result-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #eef5ff;
}

.result-item {
  border-radius: 14px;
  padding: 0.75rem 0.86rem;
  border: 1px solid transparent;
  box-shadow: 0 8px 16px rgba(15, 35, 62, 0.07);
  animation: resultPop 0.26s ease both;
}

.result-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.42rem;
}

.result-item-header span {
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0.86;
}

.result-item h6 {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  word-break: break-word;
}

.result-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-item--success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.result-item--reply {
  background: var(--reply-bg);
  border-color: var(--reply-border);
  color: var(--reply-text);
}

.result-item--fail {
  background: var(--fail-bg);
  border-color: var(--fail-border);
  color: var(--fail-text);
}

.result-empty {
  border-radius: 14px;
  border: 1px dashed rgba(149, 201, 236, 0.95);
  background: linear-gradient(180deg, #f8fbff 0%, #f1f8ff 100%);
  color: #50718f;
  padding: 1rem 0.85rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.86rem;
}

.login-page {
  margin: 0;
  margin-bottom: 0;
  min-height: 100vh;
  direction: ltr;
  background:
    radial-gradient(circle at 92% 10%, rgba(14, 165, 233, 0.26) 0%, rgba(14, 165, 233, 0) 38%),
    radial-gradient(circle at 8% 95%, rgba(20, 184, 166, 0.2) 0%, rgba(20, 184, 166, 0) 42%),
    linear-gradient(140deg, #eef8ff 0%, #f8fbff 44%, #f3faff 100%);
}

.login-page .auth-stage {
  direction: ltr;
}

.login-page .auth-showcase,
.login-page .auth-card,
.login-page .auth-card-head,
.login-page .auth-feature-item,
.login-page .auth-form,
.login-page .auth-footer-note,
.login-page .status-message {
  text-align: left;
}

.login-page .auth-card-head {
  justify-content: flex-start;
}

.login-page .auth-pills {
  justify-content: flex-start;
}

.login-shell {
  width: min(1120px, 100%);
}

.login-row {
  direction: ltr;
}

.login-info-card,
.login-form-card {
  border-radius: 22px;
}

.login-info-card h4,
.login-form-card h4 {
  font-family: var(--font-heading);
  color: #0f3b62;
}

.login-info-card .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.login-info-card .metric-tile strong {
  font-size: 1.08rem;
}

.login-form .auth-input-group .form-control {
  height: 3.05rem;
}

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.55rem;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before,
.auth-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.auth-wrapper::before {
  width: 360px;
  height: 360px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 72%);
}

.auth-wrapper::after {
  width: 320px;
  height: 320px;
  bottom: -130px;
  left: -80px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0) 72%);
}

.auth-stage {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 1.6rem;
  border: 1px solid rgba(138, 204, 239, 0.6);
  background:
    linear-gradient(152deg, rgba(14, 165, 233, 0.19) 0%, rgba(20, 184, 166, 0.21) 46%, rgba(249, 115, 22, 0.18) 100%),
    #ffffff;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -90px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 70%);
}

.auth-showcase::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: -95px;
  left: -62px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 72%);
}

.auth-eyebrow {
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0f74a9;
  text-transform: uppercase;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  color: #0d3559;
  line-height: 1.18;
}

.auth-description {
  color: #2a5b82;
  font-weight: 700;
  max-width: 38ch;
  line-height: 1.6;
}

.auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-bottom: 0.35rem;
}

.auth-feature-list {
  display: grid;
  gap: 0.6rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(144, 198, 231, 0.58);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.auth-feature-badge {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.73rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(140deg, #0ea5e9, #14b8a6);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.28);
}

.auth-feature-item h3 {
  margin: 0 0 0.14rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #113d64;
}

.auth-feature-item p {
  margin: 0;
  font-size: 0.79rem;
  font-weight: 600;
  color: #336186;
}

.auth-card {
  width: 100%;
  padding: 1.55rem;
  border: 1px solid rgba(160, 210, 242, 0.7);
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  border: 1px solid rgba(163, 209, 240, 0.5);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(20, 184, 166, 0.07));
  border-radius: 16px;
  padding: 0.78rem 0.82rem;
}

.auth-card-dot {
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #10b981, #0ea5e9);
  box-shadow: 0 0 0 0.28rem rgba(16, 185, 129, 0.16);
}

.auth-card .page-hero-title {
  font-size: 1.22rem;
}

.auth-card .page-hero-subtitle {
  font-size: 0.86rem;
  color: #3a668a;
}

.auth-input-group {
  margin-bottom: 0.82rem;
}

.auth-input-group .form-label {
  font-weight: 800;
  color: #244d71;
  margin-bottom: 0.36rem;
}

.auth-input-group .form-control {
  height: 3rem;
  border-radius: 13px;
  border: 1px solid rgba(156, 205, 238, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  font-weight: 700;
  color: #0f2f4f;
}

.auth-input-group .form-control::placeholder {
  color: #7a95ac;
  font-weight: 600;
}

.auth-input-group .form-control:focus {
  border-color: rgba(14, 165, 233, 0.8);
  box-shadow: var(--ring-focus);
}

.auth-form .form-label {
  font-weight: 800;
  color: #244d71;
}

.auth-form .btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  border: none;
  border-radius: 14px;
  font-weight: 800;
  padding-block: 0.66rem;
  box-shadow: 0 12px 20px rgba(14, 165, 233, 0.28);
}

.auth-form .btn-primary:hover {
  filter: saturate(1.06);
  transform: translateY(-1px);
}

.auth-submit-btn {
  margin-top: 0.55rem;
  letter-spacing: 0.01em;
}

.auth-footer-note {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4e7391;
  text-align: center;
  border-top: 1px dashed rgba(159, 208, 238, 0.78);
  padding-top: 0.72rem;
}

code {
  border-radius: 8px;
  padding: 0.1rem 0.36rem;
  background: #eff6ff;
  color: #1759a9;
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(14px);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultPop {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1199.98px) {
  .app-shell {
    width: calc(100% - 1.2rem);
  }

  .gateway-hero {
    padding: 1.05rem 1rem;
  }

  .auth-stage {
    width: min(1040px, 100%);
  }

  .login-shell {
    width: min(1020px, 100%);
  }
}

@media (max-width: 991.98px) {
  .app-navbar {
    border-radius: 0 0 20px 20px;
  }

  .app-brand-subtitle {
    display: none;
  }

  .app-nav-links {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.55rem;
  }

  .result-card-header {
    padding: 0.82rem 0.84rem 0.3rem;
  }

  .result-list {
    min-height: 14rem;
    max-height: 20rem;
  }

  .auth-stage {
    grid-template-columns: 1fr;
  }

  .login-row {
    direction: ltr;
  }

  .auth-showcase {
    order: 2;
    padding: 1.25rem;
  }

  .auth-card {
    order: 1;
    padding: 1.25rem;
  }

  .auth-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-feature-item {
    min-height: 100%;
  }

  .login-info-card .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .app-shell {
    width: calc(100% - 0.8rem);
  }

  .app-main {
    padding-top: 1rem;
  }

  .gateway-hero {
    border-radius: 18px;
  }

  .gateway-hero-title {
    font-size: 1.24rem;
  }

  .send-sms-page .metric-grid,
  .api-page .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-wrapper {
    padding: 0.8rem;
  }

  .auth-showcase,
  .auth-card {
    border-radius: 18px;
  }

  .auth-card-head {
    padding: 0.65rem 0.7rem;
  }

  .auth-input-group .form-control {
    height: 2.85rem;
  }

  .login-form .auth-input-group .form-control {
    height: 2.85rem;
  }

  .auth-feature-list {
    grid-template-columns: 1fr;
  }

  .auth-feature-item {
    padding: 0.68rem 0.7rem;
  }

  .auth-feature-item h3 {
    font-size: 0.86rem;
  }

  .auth-feature-item p {
    font-size: 0.76rem;
  }
}

@media (min-width: 768px) {
  .send-sms-page .metric-grid,
  .api-page .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
