/* ========== GENERAL STYLES ========== */
@font-face {
  font-family: "newFont";
  src: url("../fonts/CooperHewitt-Book.otf");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "newFont", Arial, sans-serif;
  background: url("../images/backg3.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== CONTAINER STYLES ========== */
.register-container,
.login-container,
.forgot-container,
.verify-container,
.reset-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container {
  max-width: 450px;
}

/* ========== LOGO HEADER STYLES ========== */
.logo-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo-header .logo {
  font-size: 32px;
  font-weight: 800;
  color: #fd2b2b;
  font-family: "newFont", Arial, sans-serif;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.register-container:hover,
.login-container:hover,
.forgot-container:hover,
.verify-container:hover,
.reset-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========== HEADER STYLES ========== */
.form-header,
.login-header,
.forgot-header,
.verify-header,
.reset-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2,
.login-header h2,
.forgot-header h2,
.verify-header h1,
.reset-header h1 {
  color: #fd2b2b;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-header p,
.login-header p,
.forgot-header p,
.verify-subtitle,
.reset-header p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* ========== SECTION STYLES ========== */
.form-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fd2b2b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== FORM STYLES ========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  text-align: left;
}

.form-control,
.form-select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-select {
  background: white;
  cursor: pointer;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #fd2b2b;
  box-shadow: 0 0 0 3px rgba(253, 43, 43, 0.1);
}

.form-text {
  display: block;
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 5px;
  line-height: 1.4;
}

/* ========== CHECKBOX STYLES ========== */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 25px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #fd2b2b;
  margin-top: 2px;
}

.form-group-checkbox{
  width: 18px;
  height: 18px;
  accent-color: #fd2b2b;
  margin-top: 2px;
}

/* ========== BUTTON STYLES ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-primary {
  background: #fd2b2b;
  color: white;
}

.btn-primary:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(253, 43, 43, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
  margin-top: 15px;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

/* ========== ALERT STYLES ========== */
.alert {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f1aeb5;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}

.login-link {
  color: #fd2b2b;
  text-decoration: none;
  font-weight: 600;
}

.login-link:hover {
  text-decoration: underline;
}

.forgot-password-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.875rem;
}

.forgot-password-link:hover {
  color: #fd2b2b;
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 768px) {
  .login-container {
    width: 85%;
    height: 50%;
    padding: 20px 40px;
    margin: 10px 20px;
  }

  h2 {
    font-size: 22px;
  }

  .button1,
  .button2 {
    padding: 10px 73px;
  }

  p {
    font-size: 12px;
  }

  .notification-dropdown {
    width: 200px;
  }

  .shit-invt {
    font-size: 12px;
  }

  .button3 {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 518px) {
  .button1,
  .button2 {
    padding: 10px 50px;
  }

  .button3 {
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .login-container {
    width: 85%;
    padding: 15px 30px;
    margin: 10px 20px;
  }

  .button3 {
    width: 80%;
    margin: 0 auto;
  }

  h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  form {
    gap: 10px;
  }

  .error,
  #email-status {
    font-size: 12px;
  }
}

@media (max-width: 406px) {
  .login-container {
    width: 85%;
    padding: 15px 30px;
    margin: 10px 20px;
  }

  h2 {
    font-size: 18px;
  }

  .button1,
  .button2 {
    padding: 10px 40px;
  }

  .button3 {
    width: 80%;
    margin: 0 auto;
  }
  button,
  a {
    margin: 10px;
    font-size: 12px;
    padding: 6px 12px;
  }

  p {
    font-size: 10px;
  }
}

@media (max-width: 370px) {
  h2 {
    font-size: 16px;
  }

  .button1,
  .button2 {
    padding: 10px 30px;
  }

  .button3 {
    width: 80%;
    margin: 0 auto;
  }

  button,
  a {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* ========== MODERN RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .register-container,
  .login-container,
  .forgot-container,
  .verify-container,
  .reset-container {
    margin: 10px;
    padding: 30px 20px;
  }

  .form-header h2,
  .login-header h2,
  .forgot-header h2,
  .verify-header h1,
  .reset-header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
