/* ==========================================================================
   AUTH: Real Google Identity Authentication Gate Stylesheet
   ========================================================================== */

#auth-login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, #1E1B4B 0%, #0F172A 70%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
}

.auth-portal-card {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.9);
  border: 3px solid #38BDF8;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 
    0 0 35px rgba(56, 189, 248, 0.35),
    0 12px 0 #0369A1,
    0 25px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  backdrop-filter: blur(12px);
  animation: authCardEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authCardEnter {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Security Shield / Logo Icon */
.auth-shield-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #38BDF8 0%, #0284C7 60%, #0369A1 100%);
  border: 4px solid #BAE6FD;
  box-shadow: 
    0 0 20px rgba(56, 189, 248, 0.7),
    0 6px 0 #075985;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin-bottom: 20px;
  animation: shieldPulse 3s infinite ease-in-out;
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(56, 189, 248, 0.7), 0 6px 0 #075985; }
  50% { transform: scale(1.06); box-shadow: 0 0 32px rgba(56, 189, 248, 0.95), 0 6px 0 #075985; }
}

.auth-portal-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #FFFFFF 0%, #38BDF8 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  line-height: 1.15;
}

.auth-portal-subtitle {
  font-size: 0.95rem;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.4;
}

/* Security Notice Box */
.auth-notice-box {
  width: 100%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.auth-notice-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.auth-notice-text {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.4;
}

.auth-notice-text strong {
  color: #38BDF8;
}

/* Google Sign-In Button Container */
.auth-google-btn-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Custom Interactive Google Button */
.google-signin-custom-btn {
  width: 100%;
  max-width: 340px;
  height: 52px;
  background: #FFFFFF;
  color: #3C4043;
  border: 2px solid #DADCE0;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
  user-select: none;
}

.google-signin-custom-btn:hover {
  background-color: #F8FAFC;
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.google-signin-custom-btn:active {
  background-color: #EEEEEE;
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.google-icon-svg {
  width: 22px;
  height: 22px;
}

/* Status / Alert Messages */
.auth-status-message {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  animation: statusFadeIn 0.3s ease-out;
}

@keyframes statusFadeIn {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.auth-status-message.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1.5px solid #EF4444;
  color: #FCA5A5;
}

.auth-status-message.success {
  background: rgba(16, 185, 129, 0.2);
  border: 1.5px solid #10B981;
  color: #6EE7B7;
}

.auth-status-message.info {
  background: rgba(56, 189, 248, 0.2);
  border: 1.5px solid #38BDF8;
  color: #BAE6FD;
}

/* Authenticated User Badge in Header */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 2px solid #38BDF8;
  border-radius: 20px;
  padding: 4px 12px 4px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
}

.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0284C7;
  border: 1.5px solid #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #FFFFFF;
  overflow: hidden;
}

.btn-auth-signout {
  background: #EF4444;
  color: #FFFFFF;
  border: 1.5px solid #F87171;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  margin-left: 6px;
  transition: background-color 0.15s;
}

.btn-auth-signout:hover {
  background: #DC2626;
}
