/* Login Page Styles */
:root {
  --primary-color: #4a6fa5;
  --primary-hover: #3a5982;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --telegram-color: #0088cc;
}
.login-page {
  background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Prompt', 'Sarabun', sans-serif;
}
.login-container {
  width: 400px;
  max-width: 90%;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}
.login-logo {
  text-align: center;
  padding: 30px 20px 20px;
  background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
  color: white;
}
.login-logo i {
  font-size: 48px;
  margin-bottom: 10px;
}
.login-logo h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}
.login-logo p {
  margin: 5px 0 0;
  font-size: 14px;
  opacity: 0.9;
}
.login-form-container {
  padding: 20px;
}
.login-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-weight: 500;
  color: var(--secondary-color);
  transition: all 0.2s ease;
}
.tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.login-form {
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 15px;
  position: relative;
}
.form-group label {
  position: absolute;
  left: 15px;
  top: 12px;
  color: var(--secondary-color);
}
.form-group input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
  outline: none;
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  width: 100%;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}
.social-login {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.social-login p {
  margin-bottom: 15px;
  color: var(--secondary-color);
}
.btn-social {
  background-color: var(--telegram-color);
  color: white;
}
.btn-social:hover {
  opacity: 0.9;
}
.telegram-btn {
  background-color: var(--telegram-color);
}
.login-footer {
  text-align: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: var(--secondary-color);
}
.login-footer p {
  margin: 5px 0;
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
}
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid var(--primary-color);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Responsive adjustments */
@media (max-width: 480px) {
  .login-container {
    width: 95%;
  }
  .form-group input {
    font-size: 14px;
  }
}
/* Error message styles */
.error-message {
  color: var(--danger-color);
  font-size: 14px;
  margin-top: 5px;
  padding-left: 15px;
  display: none;
}
.success-message {
  color: var(--success-color);
  font-size: 14px;
  margin-top: 5px;
  padding-left: 15px;
  display: none;
}