@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --swoom-blue-900: #0D1A63;
  --swoom-blue-700: #1A2CA3;
  --swoom-blue-500: #2845D6;
  --swoom-orange-500: #F68048;
  --text-900: #111827;
  --text-700: #374151;
  --line-200: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text-900);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  line-height: 1.45;
}

.swoom-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1rem 2rem;
}

.swoom-header-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.75rem;
  row-gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  min-width: 0;
}

.lang-switcher-label {
  font-size: 0.84rem;
  color: var(--text-700);
}

.lang-switcher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lang-switcher-links a {
  margin: 0;
  padding: 0.2rem 0.52rem;
  font-size: 0.74rem;
  border-radius: 0.45rem;
}

.lang-switcher select {
  width: auto;
  min-width: 5rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.76rem;
  border-radius: 0.45rem;
}

.header-back-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  justify-self: end;
  align-self: start;
}

.header-back-nav a {
  display: inline-block;
  text-decoration: none;
  border: 1px solid rgba(40, 69, 214, 0.45);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--swoom-blue-900), var(--swoom-blue-500));
  color: #fff;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
}

.header-back-nav a:hover,
.header-back-nav a:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--swoom-orange-500), #f59a67);
}

@media (max-width: 720px) {
  .swoom-header-nav {
    grid-template-columns: 1fr;
  }

  .header-back-nav {
    justify-self: start;
    justify-content: flex-start;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-900);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

p,
label,
small,
strong,
li,
span,
div {
  color: var(--text-900);
}

hr {
  border: 0;
  border-top: 1px solid var(--line-200);
  margin: 1rem 0;
}

ul,
ol {
  margin: 0.9rem 0;
  padding-left: 1rem;
}

ul li,
ol li {
  margin-bottom: 0.5rem;
}

form:not([style*="display:inline"]):not([style*="display: inline"]) {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: 0.8rem;
  box-shadow: 0 0.35rem 1.2rem rgba(17, 24, 39, 0.08);
  padding: 1rem;
  margin: 0.75rem 0 1rem;
}

form[style*="display:inline"],
form[style*="display: inline"] {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

input,
select,
textarea {
  width: min(100%, 42rem);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  color: var(--text-900);
  padding: 0.5rem 0.65rem;
}

textarea {
  min-height: 7rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 0.16rem rgba(148, 163, 184, 0.22);
}

button,
.btn,
input[type="submit"] {
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  background: #f8fafc;
  color: var(--text-900);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
}

button:hover,
button:focus,
.btn:hover,
.btn:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: #f1f5f9;
  color: var(--text-900);
}

.btn-swoom-soft {
  border-color: rgba(40, 69, 214, 0.28);
  background: rgba(40, 69, 214, 0.12);
  color: var(--swoom-blue-900);
}

.btn-swoom-soft:hover,
.btn-swoom-soft:focus {
  border-color: rgba(40, 69, 214, 0.4);
  background: rgba(40, 69, 214, 0.18);
  color: var(--swoom-blue-900);
}

form[style*="display:inline"] button,
form[style*="display: inline"] button,
form[style*="display:inline"] .btn,
form[style*="display: inline"] .btn,
form[style*="display:inline"] input[type="submit"],
form[style*="display: inline"] input[type="submit"] {
  padding: 0.28rem 0.62rem;
  line-height: 1.2;
  font-size: 0.875rem;
}

a {
  display: inline-block;
  border-radius: 0.6rem;
  padding: 0.45rem 0.85rem;
  margin: 0.1rem 0.25rem 0.1rem 0;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--swoom-blue-900), var(--swoom-blue-500));
}

a:hover,
a:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--swoom-orange-500), #f59a67);
  text-decoration: none;
}

a[style*="display:none"] {
  display: none !important;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border: 1px solid var(--line-200);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

th {
  background: #f8fafc;
  font-weight: 700;
}

code {
  background: #f1f5f9;
  border-radius: 0.3rem;
  padding: 0.1rem 0.3rem;
}

@media (max-width: 768px) {
  .swoom-page {
    padding: 0.8rem 0.7rem 1.4rem;
  }

  form:not([style*="display:inline"]) {
    padding: 0.85rem;
  }
}

.swoom-page.welcome-page {
  max-width: none;
  padding: 0;
}

.welcome-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(1.2rem, 2vw, 2rem);
  background:
    radial-gradient(54rem 30rem at -8% 15%, rgba(40, 69, 214, 0.2), transparent 62%),
    radial-gradient(40rem 28rem at 100% 100%, rgba(246, 128, 72, 0.2), transparent 65%),
    linear-gradient(160deg, #f8fbff 0%, #ffffff 56%);
}

.welcome-shell .secret-login {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  color: var(--swoom-blue-900);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.35rem;
  margin: 0;
  opacity: 0.08;
  border-radius: 0.35rem;
  transition: opacity 180ms ease, background-color 180ms ease;
}

.welcome-shell .secret-login:hover,
.welcome-shell .secret-login:focus {
  opacity: 0.78;
  background: rgba(26, 44, 163, 0.08);
}

.welcome-hero {
  max-width: 900px;
  margin: 8vh auto 0;
  border: 1px solid #dce7ff;
  border-radius: 1.25rem;
  background: linear-gradient(120deg, rgba(13, 26, 99, 0.96), rgba(26, 44, 163, 0.93) 55%, rgba(40, 69, 214, 0.9));
  color: #fff;
  padding: clamp(1.2rem, 4vw, 3rem);
  box-shadow: 0 1.2rem 2.5rem rgba(13, 26, 99, 0.18);
  animation: welcome-rise 500ms ease-out;
}

.welcome-hero .eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.welcome-hero h1 {
  color: #fff;
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.1;
  max-width: 16ch;
}

.welcome-hero p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.1rem;
  max-width: 52ch;
}

.welcome-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.welcome-hero .actions a {
  margin: 0;
}

.welcome-note {
  margin: 1rem auto 0;
  max-width: 900px;
  color: #677189;
  font-size: 0.92rem;
}

@keyframes welcome-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
