/* ============================================================
   USER AUTHENTICATION & DASHBOARD STYLING
   ============================================================ */

/* ========== AUTH CONTAINER ========== */

.auth-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 45px auto 45px;
  max-width: 420px;
  width: 80%;
  animation: slideUp 0.5s ease-out;
}

.auth-container h1 {
  color: #37384d;
  text-align: center;
  margin-top: 0;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

/* ========== FORM GROUP ========== */

@media (min-width: 1024px) {
  .auth-container,
  .message-container,
  .dashboard-container {
    max-width: 400px;
    width: 70%;
  }
}

/* Login Form - spezifische Breite */
#login-form {
  max-width: 500px !important;
  width: 100% !important;
}

#login-form .col-6 {
  width: 100% !important;
}

@media (min-width: 1024px) {
  #login-form {
    max-width: 450px !important;
  }
}

/* Password Forgot Form - größere Breite wegen Text */
#password-forgot-form {
  max-width: 600px !important;
  width: 100% !important;
}

#password-forgot-form .col-6 {
  width: 100% !important;
}

@media (min-width: 1024px) {
  #password-forgot-form {
    max-width: 600px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .auth-container,
  .message-container,
  .dashboard-container {
    max-width: 400px;
    width: 78%;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #37384d;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: "Arial", sans-serif;
  transition: all 0.3s ease;
  background-color: #fafaf8;
  color: #333;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #d59e5b;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(213, 158, 91, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

/* ========== PASSWORD REQUIREMENTS ========== */

.password-requirements {
  background-color: #f5f5f5;
  border-left: 3px solid #d59e5b;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.password-requirements ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.password-requirements li {
  margin: 5px 0;
}

/* ========== MESSAGE CONTAINER ========== */

.message-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 45px auto 0;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

.success-message,
.error-message {
  padding: 20px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 30px;
}

.success-message {
  background-color: #e8f5e9;
  border: 2px solid #4caf50;
  color: #2e7d32;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.error-message {
  background-color: #ffebee;
  border: 2px solid #f44336;
  color: #c62828;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

/* ========== STATUS MESSAGES ========== */

.error,
.success {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.error {
  background-color: #ffebee;
  border: 2px solid #f44336;
  color: #c62828;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.success {
  background-color: #e8f5e9;
  border: 2px solid #4caf50;
  color: #2e7d32;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

/* ========== BUTTONS ========== */

.submit-button,
.cta-button {
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #d59e5b 0%, #d9923c 100%);
  border: none;
  border-radius: 8px;
  color: #37384d;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(213, 158, 91, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-button {
  width: 100%;
  margin-top: 20px;
}

.cta-button {
  display: inline-block;
  text-decoration: none;
}

.submit-button:hover,
.cta-button:hover {
  background: linear-gradient(135deg, #d9923c 0%, #cc7a28 100%);
  transform: translateY(-2px);
  color: #37384d !important;
  box-shadow: 0 6px 20px rgba(213, 158, 91, 0.4);
}

/* ========== AUTH LINKS ========== */

.auth-links {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.auth-links a {
  color: #d59e5b;
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin: 10px 0;
}

.auth-links a:hover {
  color: #d9923c;
}

/* ========== DASHBOARD CONTAINER ========== */

.dashboard-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 45px auto 0;
  max-width: 95%;
  animation: slideUp 0.5s ease-out;
}

.dashboard-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.dashboard-header h1 {
  color: #37384d;
  margin: 0;
  font-size: 2rem;
}

.user-name {
  color: #d59e5b;
  font-size: 1.1rem;
}

/* ========== LOGOUT BUTTON ========== */

.logout-button {
  display: inline-block;
  padding: 12px 24px;
  background: #d59e5b;
  color: #37384d;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.logout-button:hover {
  background: linear-gradient(135deg, #d9923c 0%, #cc7a28 100%);
  transform: translateY(-2px);
  color: #37384d !important;
}

/* ========== DASHBOARD GRID & CARDS ========== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: #f9f9f9;
  border-left: 4px solid #d59e5b;
  padding: 20px;
  border-radius: 8px;
}

.dashboard-card h2 {
  color: #37384d;
  margin-top: 0;
  font-size: 1.2rem;
}

.dashboard-card p {
  color: #666;
  line-height: 1.6;
}

/* ========== CHECKBOX GROUP ========== */

.checkbox-group {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
}

/* ========== SAVE BUTTON ========== */

.save-button {
  background: linear-gradient(135deg, #d59e5b 0%, #d9923c 100%);
  color: #37384d;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.save-button:hover {
  background: linear-gradient(135deg, #d9923c 0%, #cc7a28 100%);
  transform: translateY(-2px);
  color: #37384d !important;
}

/* ========== ORDERS TABLE ========== */

.orders-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.orders-table thead {
  background: linear-gradient(135deg, #37384d 0%, #4a4b63 100%);
  color: white;
}

.orders-table th {
  padding: 15px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.orders-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.orders-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.orders-table tbody tr:hover {
  background-color: #f0f0f0;
}

/* ========== STATUS BADGES ========== */

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-completed {
  background-color: #d4edda;
  color: #155724;
}

/* ========== ANIMATIONS ========== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    grid-template-columns: 1fr;
  }

  .orders-table th,
  .orders-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .auth-container,
  .message-container,
  .dashboard-container {
    padding: 20px;
    margin: 30px auto 0;
  }

  .auth-container h1,
  .dashboard-header h1 {
    font-size: 1.5rem;
  }

  .dashboard-header {
    gap: 15px;
  }

  .form-group input {
    font-size: 16px;
  }

  .submit-button,
  .cta-button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
