/* Swisscom Login – visual replica (static frontend only) */

:root {
  --swisscom-blue: #0045ad;
  --swisscom-blue-hover: #003d96;
  --swisscom-navy-text: #001144;
  --swisscom-link: #005bb8;
  --swisscom-red: #dd0b1a;
  --page-bg: #f4f4f4;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-secondary: #5c5c5c;
  --text-muted: #8c8c8c;
  --border-color: #c8c8c8;
  --footer-bg: #333333;
  --card-width: 770px;
  --card-min-height: auto;
  --card-radius: 15px;
  --input-radius: 5px;
  --btn-radius: 8px;
  --input-border: #c5c5c5;
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.08);
  --font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Left panel gradient – matches original: dark royal top → bright sky bottom */
  --gradient-start: #004b99;
  --gradient-mid: #0066cc;
  --gradient-end: #0088ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-dark);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Main ── */

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 16px;
}

.login-card {
  display: flex;
  width: var(--card-width);
  max-width: calc(100% - 32px);
  min-height: var(--card-min-height);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}

/* ── Left panel (gradient) ── */

.promo-panel {
  flex: 0 0 40%;
  background: linear-gradient(
    180deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 50%,
    var(--gradient-end) 100%
  );
  color: var(--white);
  padding: 38px 34px 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.promo-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.promo-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 28px;
}

.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  row-gap: 16px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.service-icon svg {
  width: 18px;
  height: 18px;
}

/* ── Right panel ── */

.login-panel {
  flex: 0 0 60%;
  background: var(--white);
  padding: 38px 40px 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.login-panel__inner {
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.swisscom-logo {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--swisscom-navy-text);
  line-height: 1.15;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.login-service {
  font-size: 18px;
  font-weight: 400;
  color: var(--swisscom-navy-text);
  margin-bottom: 22px;
  line-height: 1.2;
}

.login-instruction {
  font-size: 13px;
  color: #333333;
  margin-bottom: 22px;
  line-height: 1.5;
}

.login-instruction--username {
  margin-bottom: 18px;
}

.username-display {
  font-weight: 400;
  color: var(--text-dark);
  word-break: break-all;
}

.login-step[hidden] {
  display: none !important;
}

.login-success {
  margin-bottom: 24px;
  color: var(--swisscom-navy-text);
  font-size: 14px;
}

/* ── Form ── */

.login-form {
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #767676;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: #999999;
  font-size: 14px;
}

.form-input:hover {
  border-color: #a8a8a8;
}

.form-input:focus {
  border-color: var(--swisscom-blue);
  box-shadow: 0 0 0 1px var(--swisscom-blue);
}

.form-input[aria-invalid="true"] {
  border-color: var(--swisscom-red);
}

/* Password field */

.password-field {
  position: relative;
}

.form-input--password {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.password-toggle:hover {
  color: var(--text-secondary);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle .icon-eye-off[hidden],
.password-toggle .icon-eye[hidden] {
  display: none;
}

/* ── Buttons ── */

.btn {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--swisscom-blue);
  border: 1px solid var(--swisscom-blue);
}

.btn-primary:hover {
  background: var(--swisscom-blue-hover);
  border-color: var(--swisscom-blue-hover);
}

.btn-secondary {
  color: var(--swisscom-blue);
  background: var(--white);
  border: 1px solid var(--swisscom-blue);
  margin-top: 12px;
}

.btn-secondary:hover {
  background: #f0f4fc;
}

.btn-group .btn-primary {
  margin-bottom: 0;
}

/* ── Help links ── */

.help-links {
  list-style: none;
}

.help-links li + li {
  margin-top: 10px;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--swisscom-link);
  text-decoration: none;
}

.help-link:hover {
  text-decoration: underline;
}

.help-link__arrow {
  font-size: 13px;
  line-height: 1;
}

/* ── Footer ── */

.site-footer {
  flex-shrink: 0;
  width: 100%;
  min-height: 76px;
  background: #333333;
  color: #e8e8e8;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-footer__logo {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.site-footer__link {
  font-size: 16px;
  font-weight: 400;
  color: #e8e8e8;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.site-footer__link:hover {
  color: var(--white);
  text-decoration: none;
}

.language-select__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #e8e8e8;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.language-select__btn:hover {
  color: var(--white);
}

.language-select__chevron {
  width: 12px;
  height: 12px;
  opacity: 0.9;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .login-card {
    width: 100%;
    flex-direction: column;
    min-height: auto;
  }

  .promo-panel,
  .login-panel {
    flex: none;
    width: 100%;
    padding: 40px 36px;
  }

  .promo-title {
    font-size: 24px;
  }

  .service-grid {
    column-gap: 32px;
    row-gap: 20px;
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .promo-panel,
  .login-panel {
    padding: 32px 24px;
  }
}
