/* auth.css - Styling for Login and Signup Pages */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&f[]=satoshi@300,400,500,700,900&display=swap');

:root {
  --primary: #D72638;
  --navy: #0D1624;
  --white: #FFFFFF;
  --border: rgba(255, 255, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Satoshi', sans-serif;
  background-color: var(--navy);
  color: var(--white);
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.auth-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  display: flex;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background-image: url('../images/auth/desktop_bg.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  min-height: 100vh;
}

/* Left Content - Image & Text */
.auth-left {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(13,22,36,0.9) 0%, rgba(13,22,36,0) 60%);
}

.auth-tagline {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-tagline::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.auth-left-bottom .auth-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(3rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.auth-left-bottom .auth-subtitle {
  font-size: 1rem;
  max-width: 450px;
  line-height: 1.6;
  opacity: 0.8;
}

.auth-right {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(11, 22, 36, 0.85); /* Solid dark instead of buggy blur */
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.scrollable-right {
  overflow-y: visible;
  min-height: 100vh;
  justify-content: center;
}

/* Custom scrollbar for right side */
.scrollable-right::-webkit-scrollbar {
  width: 6px;
}
.scrollable-right::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.auth-form-container {
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
}

.auth-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
}

.auth-brand-center img {
  width: 30px;
  height: auto;
}

.auth-brand-center span {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-header h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-header p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  color: var(--white);
  outline: none;
  transition: all 0.3s;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.8;
}

.forgot-link {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.forgot-link:hover {
  opacity: 1;
}

@keyframes rotate-border {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-auth {
  position: relative;
  width: 100%;
  padding: 1rem;
  background: transparent;
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-auth::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%; width: 300%; height: 300%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 40%, rgba(255,255,255, 0.8) 50%, transparent 60%, transparent 100%);
  animation: rotate-border 8s linear infinite;
  z-index: -2;
}

.btn-auth::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: radial-gradient(circle at 30% 30%, #15243b 0%, var(--navy) 60%, #050a11 100%);
  border-radius: 50px;
  z-index: -1;
  transition: all 0.3s;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-auth:hover::before {
  animation-duration: 4s;
}

.btn-auth:hover::after {
  background: radial-gradient(circle at 30% 30%, #1c2f4c 0%, #15243b 60%, var(--navy) 100%);
}

/* Custom Google Button */
.google-btn-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}

.btn-custom-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: var(--white);
  font-family: 'Satoshi', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-custom-google img {
  width: 20px;
  height: 20px;
}

.btn-custom-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Bottom text */
.auth-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.auth-bottom a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.auth-bottom a:hover {
  text-decoration: underline;
}

/* Alert Box */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.alert.error {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ffcccc;
  display: block;
}
.alert.success {
  background: rgba(0, 255, 0, 0.2);
  border: 1px solid rgba(0, 255, 0, 0.3);
  color: #ccffcc;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  body {
    padding: 0 !important;
    margin: 0;
    min-height: 100vh;
    display: block;
    background-color: var(--navy);
  }
  .auth-wrapper {
    width: 100%;
    min-height: 100vh;
  }
  .auth-card {
    flex-direction: column-reverse !important;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    background-image: url('../images/auth/mobile_bg.png');
  }
  .auth-right {
    order: 1;
    padding: 3rem 1.5rem 2.5rem 1.5rem;
    border-left: none;
    border-top: none;
    width: 100%;
    background: rgba(11, 22, 36, 0.95);
    min-height: auto;
  }
  .scrollable-right {
    min-height: auto;
    max-height: none;
    overflow-y: visible;
  }
  .auth-left {
    order: 2;
    padding: 3.5rem 1.5rem 4rem 1.5rem;
    min-height: auto;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(to top, rgba(13,22,36,0.95) 0%, rgba(13,22,36,0.85) 100%);
  }
  .auth-left-top {
    margin-bottom: 1.5rem;
  }
  .auth-left-bottom .auth-title {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
  }
  .auth-left-bottom .auth-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}
