/*
 * Global styles and variables
 *
 * The design draws inspiration from the provided mock‑up and leverages
 * modern CSS features such as flexbox, custom properties, and
 * keyframe animations. The layout is fully responsive, scaling
 * gracefully across screen sizes. Colours are defined using CSS
 * custom properties for ease of adjustment and consistent theming.
 */

/* CSS Variables for theme colours */
:root {
  --primary-bg: #05192d; /* deep navy for the left panel */
  --secondary-bg: #023e8a; /* vibrant blue for header and footer */
  --accent-bg: #194a7b; /* button background and highlights */
  --accent-bg-hover: #23649c; /* hover state for buttons */
  --frame-color: rgba(255, 255, 255, 0.3); /* subtle frame/border */
  --headline-color: #d6e6ff; /* light tone for headings */
  --text-color: #c0d4f1; /* light body text colour */
  --muted-text: #8fa9c5; /* secondary small text */
  --footer-text: #e8f2ff; /* footer text colour */
}

/* Reset and base typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top bar */
.top-bar {
  background-color: var(--secondary-bg);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.login-button {
  color: var(--footer-text);
  border: 1px solid var(--frame-color);
  padding: 5px 15px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.login-button:hover {
  background-color: var(--accent-bg);
  color: #ffffff;
}

/* Main content wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 100px); /* account for header and footer heights */
}

/* Left panel */
.left-panel {
  flex: 0 0 45%;
  max-width: 45%;
  background-color: var(--primary-bg);
  display: flex;
  align-items: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

/* Decorative faint vertical line separating panels on large screens */
.left-panel::after {
  content: '';
  position: absolute;
  top: 5%;
  right: -1px;
  width: 1px;
  height: 90%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.content-wrapper {
  max-width: 85%;
  margin-left: auto; /* shift slightly to right */
}

.logo-frame {
  border: 1px solid var(--frame-color);
  display: inline-block;
  padding: 16px 24px;
  margin-bottom: 40px;
  backdrop-filter: blur(2px);
}

.logo-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--headline-color);
  text-align: center;
}

.logo-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--muted-text);
  margin-top: 6px;
  text-align: center;
}

.headline {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.2;
  color: var(--headline-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 30px;
  max-width: 90%;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-bg);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 32px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.cta-button:hover {
  background-color: var(--accent-bg-hover);
  transform: translateY(-2px);
}

/* Right panel */
.right-panel {
  flex: 1;
  position: relative;
  background-image: url("bg-abstract.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark overlay on the right panel to improve contrast */
.right-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(5, 25, 45, 0.75) 0%,
    rgba(5, 25, 45, 0.4) 40%,
    rgba(5, 25, 45, 0.2) 70%,
    rgba(5, 25, 45, 0) 100%
  );
}

/* Footer */
.footer {
  background-color: var(--secondary-bg);
  padding: 15px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--footer-text);
  letter-spacing: 1px;
}

.footer .separator {
  margin: 0 8px;
  opacity: 0.6;
}

.footer .motto {
  font-weight: 600;
  text-transform: uppercase;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-wrapper > * {
  opacity: 0;
  transform: translateY(20px);
}

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsiveness */
@media (max-width: 992px) {
  .main-wrapper {
    flex-direction: column;
  }
  .left-panel,
  .right-panel {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .left-panel {
    padding: 40px 30px;
    align-items: flex-start;
  }
  .content-wrapper {
    margin-left: 0;
    max-width: 100%;
  }
  .headline {
    font-size: 2rem;
  }
  .description {
    font-size: 0.9rem;
  }
  .top-bar {
    padding: 0 20px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .headline {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  .logo-frame {
    margin-bottom: 25px;
    padding: 12px 18px;
  }
  .logo-title {
    font-size: 1.1rem;
  }
  .cta-button {
    padding: 12px 24px;
    font-size: 0.75rem;
  }
  .left-panel::after {
    display: none;
  }
}