/* 
  Premium Split-Screen Login Page Design
  Based on reference image. Vanilla CSS only.
*/

:root {
  --bg-dark: #0a0a0c;
  --bg-input: #f5f6fa;
  --text-main: #000000;
  --text-muted: #666666;
  --border-radius-outer: 32px;
  --border-radius-inner: 24px;
}

body {
  margin: 0;
  background-color: var(--bg-dark);
}

.login-page-wrapper {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: 
    linear-gradient(-45deg, rgba(3, 3, 5, 0.85), rgba(5, 10, 18, 0.85), rgba(8, 13, 23, 0.85), rgba(2, 4, 10, 0.85)),
    url('../../img/accounts/mandaluyong.jpg');
  background-size: 400% 400%, cover;
  background-position: 0% 50%, center;
  background-repeat: no-repeat, no-repeat;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%, center; }
  50% { background-position: 100% 50%, center; }
  100% { background-position: 0% 50%, center; }
}

.split-container {
  display: flex;
  background-color: #ffffff;
  border-radius: var(--border-radius-outer);
  width: 100%;
  max-width: 1200px;
  height: 800px;
  max-height: 90vh;
  box-shadow: 0 0 50px rgba(0, 150, 255, 0.4), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 12px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s ease-out forwards;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.split-container:hover {
  box-shadow: 0 0 60px rgba(0, 150, 255, 0.55), 0 30px 60px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left Panel - Image Area */
.image-panel {
  flex: 1;
  background-image: url('../../img/accounts/mandaluyong.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-inner);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #ffffff;
}

/* Overlay to ensure text readability if needed */
.image-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.quote-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.quote-header::after {
  content: '';
  height: 1px;
  width: 50px;
  background-color: rgba(255,255,255,0.6);
}

.hero-text {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.hero-title {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 4.5rem;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 80%;
  margin: 0;
  font-weight: 300;
}

/* Right Panel - Form Area */
.form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
  position: relative;
}

.logo-top {
  position: absolute;
  top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}

.logo-top img {
  height: 24px;
  width: auto;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-family: 'MuseoModerno', sans-serif;
  font-size: 2.75rem;
  color: var(--text-main);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #a0a0a0;
}

.form-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 3rem; /* space for icon */
}

/* Authentication Error Styling */
.error-message {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.5s both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

.btn-submit {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 1.1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1rem;
  font-family: 'Outfit', sans-serif;
}

.btn-submit:hover {
  background-color: #1a1a1a;
  transform: translateY(-1px);
}

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

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .image-panel {
    display: none;
  }
  .split-container {
    height: auto;
    max-width: 500px;
  }
  .form-panel {
    padding: 3rem 2rem;
  }
  .logo-top {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .login-page-wrapper {
    padding: 1rem;
  }
  .split-container {
    border-radius: 24px; /* Slightly softer corners for small screens */
  }
  .form-panel {
    padding: 2rem 1.5rem;
  }
  .form-header h2 {
    font-size: 2rem;
  }
  .form-header p {
    font-size: 0.85rem;
  }
  .logo-top {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .btn-submit {
    padding: 1rem;
  }
}
