:root {
  --oic-navy: #10324a;
  --oic-sky: #d8ebf7;
  --oic-line: #c2d8e6;
  --oic-accent: #f18f01;
  --oic-accent-strong: #cf6f00;
  --oic-panel: rgba(255, 255, 255, 0.92);
  --oic-panel-strong: rgba(255, 255, 255, 0.98);
  --oic-text: #173042;
  --oic-muted: #587081;
  --oic-shadow: 0 24px 60px rgba(16, 50, 74, 0.18);
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--oic-text);
  background:
    radial-gradient(circle at top left, rgba(241, 143, 1, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(49, 123, 167, 0.22), transparent 36%),
    linear-gradient(135deg, #f5fbff 0%, #ebf4fa 48%, #f7fbfe 100%);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

body {
  padding: 40px 16px 56px;
  font-size: 16px;
}

.container {
  max-width: 940px;
}

.oic-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.oic-hero {
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(16, 50, 74, 0.98), rgba(29, 81, 113, 0.95));
  color: #fff;
  box-shadow: var(--oic-shadow);
  position: relative;
  overflow: hidden;
}

.oic-hero::before,
.oic-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.oic-hero::before {
  width: 240px;
  height: 240px;
  top: -90px;
  right: -60px;
}

.oic-hero::after {
  width: 160px;
  height: 160px;
  bottom: -72px;
  left: -32px;
}

.oic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oic-hero h2 {
  position: relative;
  margin: 18px 0 12px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

.oic-hero p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.8;
}

.oic-hero-points {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.oic-hero-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.oic-hero-point i {
  color: #ffd089;
  margin-top: 2px;
}

.oic-hero-point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.oic-hero-point span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.6;
}

.oic-side {
  display: grid;
  gap: 18px;
}

.oic-panel {
  padding: 22px;
  border-radius: 24px;
  background: var(--oic-panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--oic-shadow);
}

.oic-panel h3 {
  margin: 0 0 14px;
  color: var(--oic-navy);
  font-size: 20px;
  font-weight: 800;
}

.oic-step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oic-step-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.oic-step-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eff6fb;
  color: var(--oic-navy);
  font-weight: 800;
}

.oic-step-body strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.oic-step-body span {
  display: block;
  color: var(--oic-muted);
  font-size: 13px;
  line-height: 1.6;
}

.oic-note-grid {
  display: grid;
  gap: 12px;
}

.oic-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6fbfe;
  border: 1px solid #d8e6ef;
}

.oic-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--oic-navy);
  font-size: 14px;
}

.oic-note span {
  display: block;
  color: var(--oic-muted);
  font-size: 13px;
  line-height: 1.6;
}

.oic-main-card {
  margin-top: 24px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  background: var(--oic-panel);
  box-shadow: var(--oic-shadow);
  overflow: hidden;
}

.card-body {
  padding: 32px;
}

.title.alert {
  margin: -8px -8px 24px;
  padding: 24px 28px;
  border: 0;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(16, 50, 74, 0.96), rgba(34, 92, 129, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.title.alert h1 {
  margin: 0;
  color: #fdfefe;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.title.alert::after {
  content: "GitLab / Redmine 共通アカウント";
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.title.alert + .logo {
  display: none !important;
}

.help.alert,
.result.alert,
.alert-info,
.alert-warning,
.alert-success,
.alert-danger {
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: none;
}

.help.alert,
.alert-warning {
  background: #fff3d8;
  border-color: #f4d08b;
  color: #744a00;
}

.alert-info {
  background: var(--oic-panel-strong);
  border-color: var(--oic-line);
}

.alert-success {
  background: #e3f5ea;
  border-color: #9dd2af;
  color: #155a2b;
}

.alert-danger {
  background: #fdeaea;
  border-color: #efb7b7;
  color: #8a2323;
}

form {
  margin-top: 4px;
}

.row.mb-3 {
  margin-bottom: 18px !important;
}

.col-form-label {
  color: var(--oic-text);
  font-weight: 700;
}

.input-group-text {
  min-width: 50px;
  justify-content: center;
  border: 1px solid var(--oic-line);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background: #eff6fb;
  color: #3f6178;
}

.form-control {
  min-height: 50px;
  border: 1px solid var(--oic-line);
  border-radius: 0 14px 14px 0;
  background: #fff;
  color: var(--oic-text);
  box-shadow: none;
}

.form-control:focus {
  border-color: #74a9ca;
  box-shadow: 0 0 0 4px rgba(116, 169, 202, 0.18);
}

.btn {
  min-width: 180px;
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn-primary,
button[type="submit"] {
  background: linear-gradient(135deg, var(--oic-accent), var(--oic-accent-strong));
  color: #fff;
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, #ff9e16, #b85d00);
  color: #fff;
}

.table {
  border-radius: 14px;
  overflow: hidden;
}

.table td,
.table th {
  border-color: #d8e6ef;
}

.small,
small,
.text-muted {
  color: var(--oic-muted) !important;
}

.password-strength,
.ppolicy {
  margin-bottom: 18px;
}

#footer {
  display: none;
}

@media (max-width: 767px) {
  .oic-shell {
    grid-template-columns: 1fr;
  }

  .oic-hero,
  .oic-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .oic-hero h2 {
    font-size: 28px;
  }

  body {
    padding: 20px 10px 36px;
  }

  .card-body {
    padding: 20px;
  }

  .title.alert {
    padding: 18px 18px 20px;
    margin: -4px -4px 18px;
  }

  .title.alert h1 {
    font-size: 24px;
  }

  .title.alert::after {
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .col-form-label {
    text-align: left !important;
    margin-bottom: 6px;
  }

  .btn {
    width: 100%;
  }
}