/* ========================================
   ログイン画面専用スタイル
   ======================================== */

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #0891b2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  top: -200px;
  right: -200px;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -150px;
  left: -100px;
}

.login-wrapper {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 540px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

/* 左パネル */
.login-panel-left {
  flex: 1;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.clinic-brand {
  margin-bottom: 40px;
}

.clinic-brand .brand-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

.clinic-brand h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.clinic-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-item .feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.feature-item .feature-text h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-item .feature-text p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* 右パネル（フォーム） */
.login-panel-right {
  width: 400px;
  background: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-header {
  margin-bottom: 32px;
}

.login-form-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.login-form-header p {
  font-size: 13px;
  color: var(--gray-500);
}

.login-form .form-group {
  margin-bottom: 18px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 15px;
  pointer-events: none;
}

.input-wrapper input {
  padding-left: 38px;
}

.input-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.15s;
}

.input-wrapper .toggle-password:hover {
  color: var(--gray-600);
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.login-divider {
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
  margin: 20px 0;
  position: relative;
}

.login-divider::before,
.login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--gray-200);
}

.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.demo-accounts {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.demo-accounts h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.demo-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: color 0.15s;
}

.demo-account-item:last-child { border-bottom: none; }

.demo-account-item:hover .demo-fill-btn { color: var(--primary); }

.demo-account-info { flex: 1; }
.demo-account-name { font-size: 12.5px; font-weight: 600; color: var(--gray-700); }
.demo-account-id { font-size: 11px; color: var(--gray-400); }

.demo-fill-btn {
  font-size: 11px;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  font-weight: 600;
}

.login-error {
  background: var(--danger-light);
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.login-error.show { display: flex; }

.login-footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--gray-400);
  margin-top: 24px;
}

@media (max-width: 700px) {
  .login-wrapper {
    flex-direction: column;
    max-width: 400px;
  }
  .login-panel-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 32px 28px;
  }
  .login-features { display: none; }
  .login-panel-right {
    width: 100%;
    padding: 32px 28px;
  }
}
