/* Animations */
@keyframes slide-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.animate-slide-in {
  animation: slide-in 0.5s ease-out;
}

.animate-error {
  animation: error-shake 0.3s ease;
}

/* Containers */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(145deg, #6b7280 0%, #1e3a8a 100%);
  padding: 20px;
}

.login-container {
  max-width: 400px;
  width: 100%;
  margin: 40px 20px;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
}

.register-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(145deg, #6b7280 0%, #1e3a8a 100%);
  padding: 20px;
  overflow: hidden;
}

.register-container {
  max-width: 560px;
  width: 100%;
  margin: 20px;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.register-container:hover {
  transform: translateY(-5px);
}

/* Form Elements */
.form-group {
  margin-bottom: 16px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d4dbe2;
  border-radius: 10px;
  font-size: 14px;
  color: #101418;
  background-color: #f8fafc;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
  outline: none;
  transform: scale(1.01);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23101418' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d4dbe2;
  border-radius: 10px;
  font-size: 14px;
  color: #101418;
  background-color: #f8fafc;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
  outline: none;
  transform: scale(1.01);
}

/* Form Column for Register Page */
.form-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.button-group .gradient-button {
  flex: 1;
  max-width: 200px;
}

/* Review Section */
.review-section {
  text-align: center;
  max-width: 450px;
  margin: 0 auto;
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #101418;
  margin-bottom: 16px;
}

.review-details {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.review-item:hover {
  transform: translateY(-2px);
}

.review-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
}

.review-value {
  font-size: 14px;
  color: #101418;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* OTP Section */
.otp-section {
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.otp-info {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Buttons */
.gradient-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.gradient-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.3);
  background: linear-gradient(90deg, #1e40af, #60a5fa);
}

.gradient-button:disabled {
  background: #d4dbe2;
  cursor: not-allowed;
  opacity: 0.7;
}

.gradient-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.gradient-button:hover::after {
  left: 100%;
}

.secondary-button {
  background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.secondary-button:hover:not(:disabled) {
  background: linear-gradient(90deg, #4b5563, #6b7280);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(107, 114, 128, 0.3);
}

/* Links */
.link-text {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
}

.link-text a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link-text a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* Error Messages */
.error {
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
  padding: 10px;
  background: #fef2f2;
  border-radius: 10px;
  border: 1px solid #fee2e2;
  transition: opacity 0.3s ease;
}

/* Responsive Design for Login and Register */
@media (max-width: 768px) {
  .login-container,
  .register-container {
    margin: 20px;
    padding: 20px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
  }

  .form-column {
    max-width: 100%;
  }

  .review-section {
    max-width: 100%;
    padding: 16px;
  }

  .button-group {
    flex-direction: column;
    gap: 8px;
  }

  .button-group .gradient-button {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .login-container,
  .register-container {
    padding: 16px;
  }

  .gradient-button {
    font-size: 14px;
    padding: 10px;
  }

  .review-section h3 {
    font-size: 18px;
  }

  .review-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .review-value {
    text-align: left;
    max-width: 100%;
  }
}