/* css/auth.css */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-image:
    radial-gradient(ellipse 700px 500px at 15% 10%, rgba(0, 213, 255, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 500px 400px at 85% 90%, rgba(0, 120, 200, 0.05) 0%, transparent 65%);
}

.auth-card {
  width: min(480px, 100%);
  background: linear-gradient(145deg, rgba(10, 22, 40, 0.95), rgba(6, 14, 26, 0.98));
  border: 1px solid rgba(0, 213, 255, 0.15);
  border-radius: 24px;
  padding: 2.8rem 2.2rem;
  box-shadow:
    0 0 0 1px rgba(0, 213, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 213, 255, 0.4), transparent);
}

.auth-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
  text-align: center;
}

.auth-logo {
  height: 52px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px rgba(0, 213, 255, 0.3));
}

.auth-head h1 {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #f0f8ff;
  font-weight: 800;
}

.auth-head p {
  color: #5a7a96;
  font-size: 0.93rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* FORM GROUPS */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #c8daea;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #f0f8ff;
  font-size: 0.97rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(0, 213, 255, 0.5);
  background: rgba(0, 213, 255, 0.04);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(0, 213, 255, 0.08);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

/* SUBMIT BUTTON */
.auth-submit {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(135deg, #00d5ff, #0098b8);
  color: #000;
  border: none;
  border-radius: 13px;
  font-weight: 800;
  font-size: 0.97rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 28px rgba(0, 213, 255, 0.25);
  letter-spacing: 0.1px;
  position: relative;
  overflow: hidden;
}

.auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.auth-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 213, 255, 0.35);
}

.auth-submit:hover::after {
  opacity: 1;
}

.auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 213, 255, 0.2);
}

.auth-submit.loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* MESSAGE */
#msg {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 11px;
  font-weight: 600;
  text-align: center;
  display: none;
  font-size: 0.9rem;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

#msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

#msg.success {
  display: block;
  background: rgba(0, 232, 122, 0.08);
  border: 1px solid rgba(0, 232, 122, 0.25);
  color: #6ee7b7;
}

/* DIVIDER */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-divider span {
  color: #3d5a73;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* FOOTER */
.auth-footer {
  margin-top: 1.6rem;
  text-align: center;
  color: #3d5a73;
  font-size: 0.9rem;
}

.auth-footer a {
  color: #00d5ff;
  font-weight: 700;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.auth-footer a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* FORM EXTRA */
.form-extra {
  margin: 0.3rem 0 1rem;
  text-align: right;
}

.forgot-link {
  background: none;
  border: none;
  color: #00d5ff;
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.forgot-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* MOBILE */
@media (max-width: 520px) {
  .auth-card {
    padding: 2rem 1.4rem;
    border-radius: 20px;
  }

  .auth-head h1 {
    font-size: 1.5rem;
  }

  .auth-submit {
    padding: 0.85rem 1rem;
    font-size: 0.93rem;
  }
}

/* GOOGLE AUTH */
.google-auth{
display:flex;
justify-content:center;
width:100%;
margin-bottom:0.5rem;
}

.google-btn-wrapper{
display:flex;
justify-content:center;
width:100%;
}

/* Force Google button to fill width and center */
.g_id_signin{
display:flex;
justify-content:center
}


/* DIVIDER fix for "or continue with email" */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.6rem 0;
  color: #3d5a73;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}
