* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  background: radial-gradient(circle, #3a2d2e, #022730, #000000);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  animation: fadeIn 0.6s ease-out;
  backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 0.7rem;
  font-size: 1.8rem;
  font-weight: 300;
}

.login-container p {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #dcdcdc;
}

.social-button {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  outline: none;
}

.microsoft:focus {
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.5);
}

.google:focus {
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.4);
}

.apple:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.microsoft {
  background: #0078d4;
  color: white;
}

.microsoft:hover {
  background: #106ebe;
}

.google {
  background: white;
  color: #333;
}

.google:hover {
  background: #eee;
}

.apple {
  background: #000;
  color: #fff;
}

.apple:hover {
  background: #222;
}

.email-login-toggle {
  margin: 1rem 0;
  text-align: center;
  color: #ccc;
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.email-login-toggle:hover {
  color: #fff;
}

form,
.forgot {
  max-height: 0;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

form.show,
.forgot.show {
  max-height: 400px;
  opacity: 1;
}

input[type='text'],
input[type='email'],
input[type='password'] {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

input[type='email']:focus,
input[type='password']:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.25);
}

input::placeholder {
  color: #ddd;
}

.login-btn {
  width: 100%;
  padding: 0.75rem;
  background: #cd1719;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
  outline: none;
    text-decoration:none;
}

.login-btn:hover {
  opacity: 0.9;
  background: #e02124;
}

.login-btn:focus {
  box-shadow: 0 0 0 2px rgba(205, 23, 25, 0.5);
  outline: none;
  border-radius: 8px;
}

.forgot {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #ccc;
  text-decoration: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.forgot:hover {
  color: #fff;
}

.error-message {
  color: #ffb3b3;
  background-color: rgba(255, 0, 0, 0.05);
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #cd1719;
  border-radius: 4px;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    max-height 0.3s ease,
    margin-bottom 0.3s ease;
}

.error-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 100px;
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

.back-arrow {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
  cursor: pointer;
  text-decoration: none;
}

.back-arrow:hover {
  color: #fff;
}

.form-slide {
  opacity: 0;
  transform: translateY(10px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
}

.form-slide.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
}

.success-message {
  color: #b6f2c4;
  background-color: rgba(0, 255, 128, 0.05);
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #2ecc71;
  border-radius: 4px;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    max-height 0.3s ease,
    margin-bottom 0.3s ease;
}

.success-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 100px;
  margin-bottom: 1rem;
}

input:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.success {
  border-radius: 12px;
  font-size: 1rem;
  margin-top: 2rem;
  text-align: center;
  line-height: 1.6;
}

.success-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.success-icon svg {
  width: 120px;
  height: 120px;
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.5));
}

.fail {
    border-radius: 12px;
    font-size: 1rem;
    margin-top: 2rem;
    text-align: center;
    line-height: 1.6;
}
.fail-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.fail-icon svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.5));
}

.login-container h2 {
  text-align: center;
}
