/* ============================================================================
   Auth Page Specific Layouts
   ============================================================================ */

/* Note: base.css handles variables, reset, and navbar styles */

/* ============================================================================
   Auth Card Centering
   ============================================================================ */
.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-gradient);
}

.center {
  width: 100%;
  max-width: 450px;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 40px;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.center h1 {
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 30px;
  font-weight: 700;
}

form .txt_field {
  position: relative;
  margin-bottom: 25px;
}

.txt_field input {
  width: 100%;
  padding: 12px 16px;
  padding-top: 24px;
  font-size: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
  outline: none;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.txt_field label {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--text-tertiary);
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.txt_field input:focus,
.txt_field input:valid {
  border-color: var(--accent-primary);
  background: var(--bg-primary);
}

.txt_field input:focus~label,
.txt_field input:valid~label {
  top: 12px;
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 600;
}

input[type="submit"] {
  width: 100%;
  height: 52px;
  border: none;
  background: var(--gradient);
  border-radius: 10px;
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
  box-shadow: var(--shadow-md);
}

input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.login-with-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.login-with-google-btn:hover {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.signup_link {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.signup_link a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.signup_link a:hover {
  text-decoration: underline;
}

.messages {
  margin-bottom: 20px;
}

.message-item {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

.message-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

.message-info {
  background: rgba(16, 163, 74, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .center {
    padding: 30px 20px;
    border-radius: 12px;
  }
}