/* 
 * Main Style Sheet for Authentication System and Subscription Management
 * White and Blue Theme
 */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fbfd;
  color: #333;
  line-height: 1.6;
}

/* Container */
.container {
  margin: 50px auto;
  padding: 0 20px;
}

/* Auth Form */
.auth-form {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.auth-form h1 {
  color: #1a56db;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #4a5568;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Checkbox Style */
.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #1a56db;
}

.form-group.checkbox label {
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #1a56db;
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background-color: #1e40af;
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-links a {
  color: #1a56db;
  text-decoration: none;
  margin: 0 10px;
  display: inline-block;
  font-size: 14px;
  transition: color 0.3s;
}

.auth-links a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Alert Messages */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #e6f7ef;
  border: 1px solid #bae6d0;
  color: #0f766e;
}

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-info {
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.alert ul {
  margin-left: 20px;
}

/* Info Text */
.info-text {
  padding: 15px;
  background-color: #f0f7ff;
  border-radius: 5px;
  margin-bottom: 20px;
  color: #1e3a8a;
}

.info-text p {
  margin-bottom: 10px;
}

.info-text p:last-child {
  margin-bottom: 0;
}

/* Small Helper Text */
small {
  display: block;
  color: #6b7280;
  margin-top: 5px;
  font-size: 13px;
}

/* Content Layout */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 0;
}

.content h1 {
  color: #1a56db;
  margin-bottom: 25px;
  font-weight: 600;
}

.content h2 {
  color: #2563eb;
  margin: 30px 0 15px;
  font-weight: 500;
  font-size: 22px;
}

.footer-links a {
  color: #1a56db;
  text-decoration: none;
  margin-left: 15px;
  font-size: 14px;
}

/* Subscription Plans */
.subscription-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.plan-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.plan-card.active-plan {
  border: 2px solid #1a56db;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.plan-header h2, .plan-header h3 {
  margin: 0;
  color: #1a56db;
  font-weight: 600;
}

.badge {
  background-color: #1a56db;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.plan-price {
  margin-bottom: 20px;
  padding: 15px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.price-monthly, .price-annual {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
}

.price-annual {
  position: relative;
}

.amount {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
}

.period {
  margin-left: 5px;
  color: #6b7280;
}

.discount {
  background-color: #ef4444;
  color: white;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 10px;
}

.plan-features {
  margin-bottom: 20px;
}

.plan-features ul {
  list-style-type: none;
  padding: 0;
}

.plan-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  color: #4b5563;
}

.plan-features li:before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
  margin-right: 10px;
}

.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Subscription Details */
.subscription-details {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-top: 20px;
}

.current-plan {
  margin-bottom: 30px;
}

.plan-info {
  margin: 20px 0;
}

.info-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
  border-bottom: none;
}

.label {
  width: 150px;
  font-weight: 500;
  color: #4b5563;
}

.value {
  flex: 1;
  color: #1e293b;
}

.status {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}

.status.active {
  background-color: #d1fae5;
  color: #065f46;
}

.status.canceled, .status.expired {
  background-color: #fee2e2;
  color: #b91c1c;
}

.status.pending {
  background-color: #fef9c3;
  color: #854d0e;
}

.status.completed {
  background-color: #dbeafe;
  color: #1e40af;
}

.enabled {
  color: #047857;
  font-weight: 500;
}

.disabled {
  color: #b91c1c;
  font-weight: 500;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.data-table th {
  background-color: #f8fafc;
  color: #1e293b;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
  border-bottom: 2px solid #e2e8f0;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  color: #4b5563;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background-color: #f8fafc;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #1a56db;
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  color: #4b5563;
  margin-bottom: 15px;
  font-size: 14px;
}

.no-data {
  color: #6b7280;
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* Button Variations */
.btn-success {
  background-color: #10b981;
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-warning {
  background-color: #f59e0b;
  color: white;
}

.btn-warning:hover {
  background-color: #d97706;
}

.btn-info {
  background-color: #3b82f6;
  color: white;
}

.btn-info:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .subscription-plans {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .data-table {
    display: block;
    overflow-x: auto;
  }
  
  header .container, .header .container,
  footer .container, .footer .container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-menu a {
    margin: 5px 10px;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-links a {
    margin: 5px 10px;
  }
}

@media (max-width: 576px) {
  .container {
    margin: 30px auto;
  }
  
  .auth-form {
    padding: 20px;
  }
  
  .auth-links a {
    display: block;
    margin: 10px 0;
  }
  
  .plan-info .info-row {
    flex-direction: column;
  }
  
  .plan-info .label {
    width: 100%;
    margin-bottom: 5px;
  }
}