:root {
  
    --sidebar-width: 280px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  padding: 20px 0;
}

/* コンテナとカードレイアウト */
.container {
  width: 100%;
  max-width: 420px;
  padding: 15px;
  z-index: 1;
}

.login-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  position: relative;
}

.branding {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.logo {
  font-size: 28px;
  color: var(--dark-color);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.slogan {
  color: var(--accent-color);
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.login-form {
  padding: 0 30px 30px;
}

.login-form h2 {
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 1px solid rgba(200, 200, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: #555;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.form-input::placeholder {
  color: #aab;
}

.form-input:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(79, 172, 254, 0.2);
}

.login-btn {
  width: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
  color: #777;
  font-size: 14px;
}

.remember-me input {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

.forgot_password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot_password:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.signup-link {
  text-align: center;
  margin-top: 30px;
  color: #777;
  font-size: 14px;
  padding-bottom: 10px;
}

.signup-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.error-message {
  background: rgba(255, 192, 203, 0.3);
  color: #e75480;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  border-left: 4px solid #ff9eb5;
}

/* 背景のアニメーション要素 */
.bg-bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
  opacity: 0.7;
  filter: blur(5px);
  z-index: -1;
}

.bubble-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 20%;
  background: linear-gradient(45deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.2));
  animation: float 8s ease-in-out infinite;
}

.bubble-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 15%;
  background: linear-gradient(45deg, rgba(255, 126, 179, 0.3), rgba(255, 175, 204, 0.2));
  animation: float 10s ease-in-out infinite;
  animation-delay: 1s;
}

.bubble-3 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  right: 25%;
  background: linear-gradient(45deg, rgba(139, 198, 255, 0.3), rgba(183, 223, 255, 0.2));
  animation: float 7s ease-in-out infinite;
  animation-delay: 2s;
}

.bubble-4 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 25%;
  background: linear-gradient(45deg, rgba(255, 223, 211, 0.3), rgba(252, 243, 240, 0.2));
  animation: float 9s ease-in-out infinite;
  animation-delay: 3s;
}

.bubble-5 {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 35%;
  background: linear-gradient(45deg, rgba(196, 224, 255, 0.3), rgba(214, 235, 255, 0.2));
  animation: float 6s ease-in-out infinite;
  animation-delay: 0.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  .login-card {
    padding: 20px 15px;
  }
  
  .login-form {
    padding: 0 15px 15px;
  }
  
  .login-form h2 {
    font-size: 22px;
  }
  
  .form-input {
    font-size: 14px;
    padding: 12px 12px 12px 40px;
  }
  
  .login-btn {
    font-size: 14px;
    padding: 12px;
  }
  
  .options {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .remember-me, .forgot_password {
    margin-bottom: 10px;
  }
  
  .signup-link {
    font-size: 12px;
  }
  
  .bg-bubble {
    display: none;
  }
}

/* Bootstrap不足クラスの補完 */
.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.bg-primary {
  background-color: var(--primary-color);
}
/* ===================================
   ロゴ画像のスタイル
=================================== */
.company-logo {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto 25px auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* ロゴプレースホルダー */
.logo-placeholder {
    text-align: center;
    margin: 0 auto 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 200px;
}

.logo-placeholder i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 10px;
}

.debug-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

/* ===================================
   レスポンシブ対応
=================================== */
@media (max-width: 480px) {
    .company-logo {
        margin-bottom: 20px;
    }
    
    .logo-placeholder {
        max-width: 100%;
        margin-bottom: 15px;
        padding: 15px;
    }
}

@media (max-width: 360px) {
    .company-logo {
        margin-bottom: 18px;
    }
    
    .logo-placeholder {
        margin-bottom: 12px;
        padding: 12px;
    }
}