:root {
  --primary-color: #6c63ff;
  --secondary-color: #4a90e2;
  --dark-color: #2e2e2e;
  --light-color: #f8f9fa;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: var(--dark-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styles */
.header {
  background: linear-gradient(135deg, #3a2f8e 0%, #5549ff 100%);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Contact header - blue variant */
.header.contact-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5ba3f5 100%);
}

.header.contact-header h1 {
  font-size: 2rem;
}

.header.contact-header p {
  font-size: 1rem;
}

/* Main content */
.main-content {
  padding: 40px 0;
  flex-grow: 1;
}

.main-content.contact-main {
  padding: 30px 0;
}

/* Info box styles */
.info-box {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: 100%;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.info-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Feature items */
.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.feature-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 12px;
  background-color: rgba(108, 99, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.feature-content p {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0;
}

/* Login box styles */
.login-box {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 0;
  overflow: hidden;
  margin-bottom: 12px;
}

.login-header {
  background: linear-gradient(135deg, #3a2f8e 0%, #5549ff 100%);
  color: white;
  padding: 12px;
  text-align: center;
}

.login-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.login-header p {
  font-size: 0.75rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.login-body {
  padding: 16px;
}

/* Contact box styles */
.contact-box {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 0;
  overflow: hidden;
}

.contact-header-box {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5ba3f5 100%);
  color: white;
  padding: 12px;
  text-align: center;
}

.contact-header-box h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-header-box p {
  font-size: 0.75rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.contact-body {
  padding: 16px;
  text-align: center;
}

.contact-body p {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Contact card styles for contact page */
.contact-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: none;
  overflow: hidden;
}

.contact-card-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5ba3f5 100%);
  color: white;
  padding: 15px;
  text-align: center;
}

.contact-card-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-card-header p {
  font-size: 0.85rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.contact-info {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  color: var(--secondary-color);
  font-size: 1rem;
  width: 35px;
  height: 35px;
  background-color: rgba(74, 144, 226, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.contact-info-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.contact-info-content p {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0;
}

.contact-form {
  padding: 20px;
}

/* Form styles */
.form-control {
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #e1e1e1;
  transition: all 0.3s;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.15);
}

.form-control.contact-focus:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.1);
}

.form-control.contact-form .form-control {
  margin-bottom: 15px;
  font-size: 0.9rem;
  padding: 10px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .form-control {
  padding-left: 35px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.9rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.form-label.contact-label {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

/* Button styles */
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
  max-width: 180px;
}

.btn-primary:hover {
  background-color: #5549ff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
  max-width: 220px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
  }
}

.btn-secondary:hover {
  background-color: #5ba3f5;
  transform: translateY(-2px);
  animation: none;
}

.btn-contact {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5ba3f5 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  max-width: 220px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-contact:hover {
  background: linear-gradient(135deg, #4284d3 0%, #4f96e8 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

/* Link styles */
.back-link {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-bottom: 15px;
}

.back-link:hover {
  color: #5549ff;
  transform: translateX(-5px);
}

/* Footer styles */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 25px 0;
  text-align: center;
  margin-top: auto;
}

.footer p {
  margin-bottom: 0;
  opacity: 0.8;
}

/* Alert styles */
.alert {
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.success-message {
  background-color: rgba(108, 99, 255, 0.1);
  border-left: 3px solid var(--primary-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.success-icon {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 991px) {
  .login-box, .contact-box {
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 40px 0;
  }
  
  .header h1 {
    font-size: 2.5rem;
  }
  
  .header.contact-header h1 {
    font-size: 2.2rem;
  }
  
  .header.contact-header p {
    font-size: 1.1rem;
  }
  
  .main-content {
    padding: 40px 0;
  }
  
  .info-box {
    padding: 25px;
  }
  
  .login-body, .contact-body {
    padding: 20px;
  }
  
  .contact-card-header {
    padding: 20px;
  }
  
  .contact-card-header h2 {
    font-size: 1.5rem;
  }
  
  .info-title {
    font-size: 1.5rem;
  }
}