* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  background-color: #0f172a;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.login-container {
  width: 100%;
  height: 100vh;
  display: flex;
  position: relative;
}

.login-panel-left {
  width: 50%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  display: flex;
  align-items: center;
  padding: 10% 8%;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-panel-left.is-active {
  transform: translateX(0);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(129, 140, 248, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(129, 140, 248, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.brand-content {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.6s;
}

.brand-content.is-active {
  opacity: 1;
  transform: translateY(0);
}

.brand-sub {
  font-size: 13px;
  color: #a5b4fc;
  letter-spacing: 0.4em;
  margin-bottom: 15px;
}

.brand-title {
  font-size: 80px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 30px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-line {
  width: 40px;
  height: 2px;
  background-color: #a5b4fc;
}

.status-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2em;
}

.deco-grid-line {
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #818cf8, transparent);
  opacity: 0;
  transition: opacity 1.5s ease;
  transition-delay: 0.4s;
}

.login-panel-left.is-active .deco-grid-line {
  opacity: 0.5;
}

.login-panel-right {
  width: 50%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.98);
  display: flex;
  align-items: center;
  padding: 0 10%;
  position: relative;
  border-left: 1px solid rgba(129, 140, 248, 0.2);
  transform: translateX(100%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-panel-right.is-active {
  transform: translateX(0);
}

.form-wrapper {
  width: 100%;
  max-width: 460px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.8s;
}

.form-wrapper.is-active {
  opacity: 1;
  transform: translateX(0);
}

.form-header {
  margin-bottom: 40px;
}

.interface-title {
  font-size: 14px;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.interface-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.form-alert {
  margin-bottom: 25px;
  padding: 12px 16px;
  font-size: 13px;
  color: #f87171;
  background-color: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.form-group {
  margin-bottom: 35px;
}

.form-group-checkbox {
  margin-bottom: 40px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
  letter-spacing: 0.15em;
}

.input-container {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(129, 140, 248, 0.3);
  padding: 0 5px;
  font-size: 16px;
  color: #ffffff;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-bottom-color: transparent;
}

.form-error {
  margin-top: 8px;
  font-size: 12px;
  color: #f87171;
}

.input-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #818cf8;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus~.input-bar {
  width: 100%;
  box-shadow: 0 2px 10px rgba(129, 140, 248, 0.5);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-input {
  appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(129, 140, 248, 0.4);
  background-color: transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-input:checked {
  background-color: #818cf8;
  border-color: #818cf8;
}

.checkbox-input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #1e1b4b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 12px;
  letter-spacing: 0.05em;
  user-select: none;
  transition: color 0.3s ease;
}

.checkbox-label:hover .checkbox-text {
  color: #a5b4fc;
}

.form-action {
  width: 100%;
}

.submit-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 55px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #818cf8;
  background: transparent;
  color: #a5b4fc;
  cursor: pointer;
  letter-spacing: 0.25em;
  overflow: hidden;
  transition: all 0.4s ease;
}

.submit-button:hover {
  color: #1e1b4b;
  background-color: #818cf8;
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.3);
}

.btn-scan {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.2), transparent);
  transition: none;
}

.submit-button:hover .btn-scan {
  left: 100%;
  transition: left 0.8s ease-in-out;
}
