/* ─────────── AUTH PAGES ─────────── */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
}

/* Illustration container */
.login-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Responsive image */
.login-illustration img {
  width: 100%;
  max-width: 420px;   /* perfect size on desktop */
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}
/* Mobile layout fix */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    padding: 20px;
  }

  .login-illustration img {
    max-width: 90%;     /* fills the phone screen nicely */
    margin-bottom: 20px;
  }

  .login-form {
    width: 100%;
    padding: 0 10px;
  }
}



/* Right side form */
.login-form {
  flex: 1;
  max-width: 400px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-form h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.login-form p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-options label {
  display: flex;
  align-items: center;
}

.form-options a {
  color: #28a745;
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 1rem;
}

.btn-secondary {
  width: 100%;
  padding: 0.75rem;
  background-color: #fff;
  color: #28a745;
  border: 2px solid #28a745;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.social-icons img {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.alert {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
}
/* Layout */
.register-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #2dce89 100%);
  color: #f8fafc;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
}

/* Logo */
.logo-img {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: fadeIn 1.2s ease-out forwards;
}

/* Headline */
.register-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.3);
  animation: slideUpFade 1.1s ease-out forwards;
}

/* Subtext */
.register-subtext {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  animation: slideUpFade 1.3s ease-out forwards;
}

/* Form */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  animation: slideUpFade 1.5s ease-out forwards;
}

.register-form input {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.btn-primary {
  background-color: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: #059669;
  box-shadow: 0 0 12px rgba(16,185,129,0.6);
}

/* Footer */
.register-footer {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #e2e8f0;
  animation: slideUpFade 1.7s ease-out forwards;
}

.register-footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}

/* Animations */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-img {
    width: 120px;
  }

  .register-title {
    font-size: 1.5rem;
  }

  .register-form {
    max-width: 90%;
  }
}
/* Layout */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #2dce89 100%);
  color: #f8fafc;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
}

/* Logo */
.logo-img {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: fadeIn 1.2s ease-out forwards;
}

/* Headline */
.login-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.3);
  animation: slideUpFade 1.1s ease-out forwards;
}

/* Subtext */
.login-subtext {
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  animation: slideUpFade 1.3s ease-out forwards;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  animation: slideUpFade 1.5s ease-out forwards;
}

.login-form input {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

/* Form options */
.form-options {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* Buttons */
.btn-primary {
  background-color: #10b981;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background-color: #059669;
  box-shadow: 0 0 12px rgba(16,185,129,0.6);
}

.btn-secondary {
  margin-top: 15px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  animation: slideUpFade 1.6s ease-out forwards;
}

/* Footer */
.login-footer {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #e2e8f0;
  animation: slideUpFade 1.7s ease-out forwards;
}

/* Social icons */
.login-wrapper .social-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  animation: slideUpFade 1.8s ease-out forwards;
}

.social-icons img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* Animations */
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-img { width: 120px; }
  .login-title { font-size: 1.5rem; }
  .login-form { max-width: 90%; }
}

/* Login-only registration and social provider controls. */
.registration-cta {
  display: grid;
  gap: 2px;
  width: min(100%, 360px);
  box-sizing: border-box;
  margin-top: 15px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(15, 77, 142, 0.28);
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.registration-cta:hover,
.registration-cta:focus-visible {
  background: rgba(5, 150, 105, 0.42);
  transform: translateY(-1px);
}

.registration-cta strong {
  font-size: 1.05rem;
}

.login-wrapper .social-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 360px);
}

.login-wrapper .social-provider {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #164e63;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.login-wrapper .social-provider:hover,
.login-wrapper .social-provider:focus-visible {
  background: #ecfdf5;
  transform: translateY(-1px);
}

.login-wrapper .social-provider img,
.login-wrapper .social-provider .x-provider-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.login-wrapper .x-provider-mark {
  display: inline-grid;
  place-items: center;
  color: #111827;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 480px) {
  .registration-cta,
  .login-wrapper .social-icons {
    width: min(100%, 360px);
  }

  .login-wrapper .social-icons {
    grid-template-columns: 1fr;
  }
}
