/* ==========================================================================
   VYRALIVE - PRIYANGARAJ ISLAND REDESIGNED LOGIN GLASSMORPHIC CSS SYSTEM
   ========================================================================== */

:root {
  --sif-font-serif: 'Playfair Display', Georgia, serif;
  --sif-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --sif-pink-accent: #ff2a70;
  --sif-pink-hover: #d81b60;
  --sif-pink-light: #ff5b99;
  --sif-card-bg: rgba(22, 17, 36, 0.78);
  --sif-input-bg: rgba(43, 38, 61, 0.75);
  --sif-text-primary: #ffffff;
  --sif-text-muted: rgba(255, 255, 255, 0.65);
}

/* Base Body Layout */
.sif-page-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #0b0816;
  font-family: var(--sif-font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Dynamic Multi-Color Ambient Blurred Background */
.sif-ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sif-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  animation: blobFloat 18s ease-in-out infinite alternate;
}

.sif-blob-1 {
  top: -12%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.45) 0%, rgba(186, 24, 116, 0.15) 55%, transparent 75%);
  filter: blur(80px);
}

.sif-blob-2 {
  top: -5%;
  right: -8%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(160, 190, 60, 0.32) 0%, rgba(70, 140, 100, 0.12) 50%, transparent 75%);
  filter: blur(90px);
  animation-delay: -6s;
}

.sif-blob-3 {
  bottom: -15%;
  left: 25%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(30, 70, 160, 0.48) 0%, rgba(15, 30, 80, 0.15) 60%, transparent 75%);
  filter: blur(100px);
  animation-delay: -12s;
}

@keyframes blobFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(30px, -20px); }
  100% { transform: scale(0.95) translate(-20px, 30px); }
}

/* Card Wrapper Container */
.sif-card-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  padding: 3rem 1rem;
  box-sizing: border-box;
}

/* Floating Glassmorphic Container Card */
.sif-glass-card {
  width: 100%;
  max-width: 470px;
  background: var(--sif-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 50px rgba(255, 42, 112, 0.12);
  padding: 2.75rem 2.25rem 2.25rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Card Header & Glowing Badge */
.sif-card-header {
  text-align: center;
}

.sif-logo-badge {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.4rem auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px rgba(255, 42, 112, 0.35);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sif-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sif-card-title {
  font-family: var(--sif-font-serif);
  font-size: 2.35rem;
  font-weight: 600;
  text-align: center;
  color: var(--sif-text-primary);
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.sif-card-subtitle {
  font-size: 0.92rem;
  font-weight: 400;
  text-align: center;
  color: var(--sif-text-muted);
  margin: 0 0 1.85rem 0;
}

/* Segmented Tab Navigation: PASSWORD vs EMAIL OTP */
.sif-tab-nav {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.75rem;
}

.sif-tab-nav-item {
  flex: 1;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.sif-tab-nav-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

.sif-tab-nav-item.active {
  color: var(--sif-pink-light);
  border-bottom-color: var(--sif-pink-accent);
}

/* Role Selector (Fan vs Creator) */
.sif-role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sif-role-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
}

.sif-role-btn:hover {
  color: #fff;
}

.sif-role-btn.active {
  background: var(--sif-pink-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 42, 112, 0.4);
}

/* Form Fields & Labels */
.sif-field-group {
  margin-bottom: 1.35rem;
}

.sif-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.sif-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin: 0 0 0.45rem 0;
  display: block;
}

.sif-label-row .sif-field-label {
  margin-bottom: 0;
}

.sif-forgot-pass-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sif-pink-light);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sif-forgot-pass-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Input Boxes */
.sif-input-box {
  display: flex;
  align-items: center;
  background: var(--sif-input-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0 1rem;
  height: 50px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.sif-input-box:focus-within {
  border-color: var(--sif-pink-accent);
  box-shadow: 0 0 15px rgba(255, 42, 112, 0.25);
  background: rgba(52, 45, 75, 0.85);
}

.sif-field-icon {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.sif-field-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  width: 100%;
}

.sif-field-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.sif-eye-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.sif-eye-toggle:hover {
  color: #ffffff;
}

/* Phone Selector Styling */
.sif-phone-wrapper {
  display: flex;
  gap: 0.5rem;
}

.sif-country-select {
  background: var(--sif-input-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  padding: 0 0.6rem;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Primary Action Button */
.sif-action-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(90deg, #ff2a70 0%, #d81b60 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(255, 42, 112, 0.35);
}

.sif-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 42, 112, 0.5);
  background: linear-gradient(90deg, #ff3b7b 0%, #e02368 100%);
}

.sif-action-btn:active {
  transform: translateY(0);
}

.sif-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Alert Feedback Message */
.sif-alert-message {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  text-align: center;
  box-sizing: border-box;
}

.sif-alert-message.error {
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff6b6b;
}

.sif-alert-message.success {
  background: rgba(0, 204, 106, 0.15);
  border: 1px solid rgba(0, 204, 106, 0.3);
  color: #2ed573;
}

/* OR Divider */
.sif-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.sif-or-divider::before,
.sif-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sif-or-divider span {
  padding: 0 1rem;
}

/* Google Button */
.sif-google-btn {
  width: 100%;
  height: 50px;
  background: rgba(43, 38, 61, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.25s ease;
}

.sif-google-btn:hover {
  background: rgba(55, 48, 78, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Terms Row */
.sif-terms-row {
  margin: 1.25rem 0 1.25rem 0;
}

.sif-terms-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
}

.sif-terms-input {
  accent-color: var(--sif-pink-accent);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1px;
}

.sif-terms-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.sif-terms-text a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.sif-terms-text a:hover {
  color: var(--sif-pink-light);
}

/* Toggle Mode Row: Don't have an account? Sign up */
.sif-toggle-mode-row {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.sif-toggle-mode-row a {
  color: var(--sif-pink-light);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.3rem;
  transition: opacity 0.2s ease;
}

.sif-toggle-mode-row a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Page Bottom Footer Bar */
.sif-footer-bar {
  width: 100%;
  background: #07050e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 2;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  gap: 1rem;
  flex-wrap: wrap;
}

.sif-footer-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.sif-footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.sif-footer-links {
  display: flex;
  gap: 1.5rem;
}

.sif-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sif-footer-links a:hover {
  color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 540px) {
  .sif-glass-card {
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 22px;
  }
  .sif-card-title {
    font-size: 1.95rem;
  }
  .sif-logo-badge {
    width: 80px;
    height: 80px;
  }
  .sif-footer-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }
  .sif-footer-links {
    gap: 1rem;
  }
}
