/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-image: linear-gradient(to right, #3caad2 0%, #3fba85 51%, #3caad2 100%);
  background-size: 200% auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Brand Container - Outer (outside card) */
.brand-container-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeIn 0.6s ease-out;
}

/* Brand Container - Inner (inside card - for other pages) */
.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

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

/* b-rite Logo */
.brite-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.brand-text {
  text-align: left;
}

/* カード外のブランドテキストは白色に */
.brand-container-outer .brand-text h1 {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-container-outer .company-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* カード内のブランドテキスト（パスワードリセット画面用） */
.brand-container .brand-text h1 {
  color: #333;
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  background: linear-gradient(to right, #3caad2, #3fba85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-container .company-name {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

/* Tagline */
.tagline {
  color: #3caad2;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.login-subtitle {
  background: linear-gradient(to right, #3caad2, #3fba85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 40px;
  margin-top: 0;
  display: inline-block;
}

/* Password Reset Page */
.reset-title {
  background: linear-gradient(to right, #3caad2, #3fba85);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
}

.reset-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Client Info */
.client-info {
  margin-top: 8px;
}

.client-info small {
  color: #888;
  font-size: 14px;
}

/* Error Message */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-message svg {
  flex-shrink: 0;
}

/* Success Message */
.success-message {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-message svg {
  flex-shrink: 0;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: #c0c0c0;
  opacity: 1;
}

.form-input:focus {
  outline: none;
  border-color: #3caad2;
  box-shadow: 0 0 0 3px rgba(60, 170, 210, 0.15);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Button */
.login-button {
  background-image: linear-gradient(to right, #3caad2 0%, #3fba85 51%, #3caad2 100%);
  background-size: 200% auto;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.login-button:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(60, 170, 210, 0.3);
}

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

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.login-footer a {
  color: #3caad2;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #3fba85;
  text-decoration: underline;
}

.separator {
  margin: 0 10px;
  color: #ccc;
}

/* Logout Page */
.logout-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.logout-header {
  text-align: center;
}

.logout-message {
  margin-top: 32px;
}

.logout-title {
  color: #10b981;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.logout-description {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 10px;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .brand-container {
    gap: 12px;
  }
  
  .brite-logo {
    width: 50px;
    height: 50px;
  }
  
  .brand-text h1 {
    font-size: 26px;
  }
  
  .company-name {
    font-size: 12px;
  }
  
  .tagline {
    font-size: 13px;
  }
}