/* Enhanced Hari Jap Sadhana Login - CSS */

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

body {
  font-family: 'Noto Sans Devanagari', 'Arial Unicode MS', Arial, sans-serif;
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 50%, #f7931e 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated Background Decorations */
.bg-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
}

.bg-decoration:nth-child(1) {
  width: 300px;
  height: 300px;
  background: white;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.bg-decoration:nth-child(2) {
  width: 200px;
  height: 200px;
  background: white;
  bottom: -50px;
  right: -50px;
  animation-delay: 5s;
}

.bg-decoration:nth-child(3) {
  width: 150px;
  height: 150px;
  background: white;
  top: 50%;
  left: -75px;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
  }
  33% { 
    transform: translate(30px, -30px) scale(1.1); 
  }
  66% { 
    transform: translate(-20px, 20px) scale(0.9); 
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.om-symbol {
  font-size: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 50%;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
  }
}

.title {
  font-size: 2rem;
  color: #d84315;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Information Banner */
.info-banner {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-left: 4px solid #ff6b35;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  color: #e65100;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
  pointer-events: none;
  z-index: 1;
}

.form-group input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
  transform: translateY(-1px);
}

.form-group input.error {
  border-color: #f44336;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.char-count {
  font-size: 0.8rem;
  color: #999;
  text-align: right;
  margin-top: 4px;
  transition: color 0.3s ease;
}

.char-count.warning {
  color: #ff6b35;
  font-weight: 600;
}

/* Submit Button */
.btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: #fff;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out 0.8s both;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(76, 175, 80, 0.4);
}

.btn:active {
  transform: translateY(-1px);
}

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

.btn:disabled:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-text {
  display: inline;
}

.loading {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading.show {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Message Notifications */
.message {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: center;
  animation: slideDown 0.4s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.message.success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 2px solid #28a745;
  color: #155724;
}

.message.error {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border: 2px solid #dc3545;
  color: #721c24;
}

.message-icon {
  font-size: 1.3rem;
}

/* Progress Dots */
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  animation: fadeIn 1s ease-out 1s both;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
}

.dot.active {
  background: #ff6b35;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 24px;
  color: #666;
  font-size: 0.85rem;
  animation: fadeIn 1s ease-out 1s both;
}

.footer a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #d84315;
  text-decoration: underline;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  color: #ff6b35;
  margin-left: 4px;
  font-size: 0.9rem;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: #333;
  color: white;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  z-index: 10;
  animation: fadeIn 0.3s ease;
}

/* Responsive Design */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .login-card {
    padding: 28px 24px;
  }

  .title {
    font-size: 1.7rem;
  }

  .om-symbol {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }

  .info-banner {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .form-group input {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 1rem;
    padding: 14px;
  }
}

@media (max-width: 360px) {
  .login-card {
    padding: 24px 20px;
  }

  .title {
    font-size: 1.5rem;
  }
}
