/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* Header and Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #e60000; /* Red background for header */
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid #b30000;
  position: relative;
  z-index: 10;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #cc0000, #ff3333);
    border-radius: 8px;
    z-index: -1;
    transform: scale(1.05); /* Slightly larger to give a layered effect */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 16px rgba(0, 0, 0, 0.25);
}

header .logo {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a, nav ul li button {
  /*color: white;
  text-decoration: none;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s;*/
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 15px;
  transition: transform 0.2s ease, color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcccc;
    transform: translateY(-2px); /* Lifts the link for added 3D effect */
}

nav ul li button:hover {
  color: #ffcccc; /* Light red hover effect */
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background-color: #ffe6e6; /* Light red background */
}

.hero h1 {
  font-size: 48px;
  color: #e60000; /* Red text for the heading */
}

.hero p {
  font-size: 18px;
  color: #800000; /* Darker red text for contrast */
}

/* Popup Styles */
#popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(230, 0, 0, 0.5); /* Semi-transparent red */
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(230, 0, 0, 0.3); /* Soft red shadow */
  position: relative;
}

.popup-content .form {
  display: none;
}



.popup-content .form input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #e60000; /* Red border */
  border-radius: 4px;
  box-sizing: border-box;
}

.popup-content .form button {
  background-color: #e60000; /* Red button */
  color: white;
  border: none;
  padding: 10px;
  width: 50%;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-content .form button:hover {
  background-color: #cc0000; /* Darker red on hover */
}

.popup-content span {
  display: block;
  margin-top: 15px;
  color: #e60000; /* Red for links */
  cursor: pointer;
  transition: color 0.3s;
}

.popup-content span:hover {
  color: #cc0000; /* Darker red on hover */
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #e60000; /* Red color for X */
  cursor: pointer;
}

.close-btn:hover {
  color: #cc0000; /* Darker red on hover */
}

/* Active form */
#sign-in-form.active {
  display: block;
}

nav a.active {
    font-weight: bold;
}

/* Sign-In Button Styling */
.sign-in-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e60000;
    color: #fff;
    border: none;
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sign-in-button:hover {
    background-color: #aa0000; /* Darken color on hover */
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    color: #333;
}

footer .powered-by {
    font-size: 14px;
}

footer .powered-by .athenas {
    color: #e60000;
}

#language-selector {
  position: absolute;
  top: 80px;
  right: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center; 
  gap: 8px; 
}

#lang-flag {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 2px;              /* subtle rounding */
  /*box-shadow: 0 0 0 1px rgba(0,0,0,.08);*/
}

#language-select {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #e60000;
  color: #e60000;
  background-color: white;
  cursor: pointer;
}

#language-select option {
  font-size: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 200;
  color: #334155;
  text-align: left;
  margin: 0 0 0px 0;
  line-height: 1;
  display: block;
}

.form-field input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  margin: 0;
}

.form-field input:focus {
  border-color: #f12f2f;
  box-shadow: 0 0 0 3px rgba(241,47,47,.15);
}

#recovery-form.active {
  display: block;
}

.inline-field {
  flex-direction:row;
  align-items:flex-end;
  gap:8px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto; /* row 1: label, row 2: input + button */
  column-gap: 8px;
  row-gap: 0;
  align-items: end; /* align to the bottom of each row */
}

.inline-field label {
  grid-column: 1;
  grid-row: 1;
}

.inline-field #rec-email {
  grid-column: 1;
  grid-row: 2;
}

.inline-field .btn-inline {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  height: 70%;
  padding: 0 12px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.inline-field .field-col {
  flex:1;
  display:contents;
  flex-direction:column;
  gap:0;
}

.popup-content .form .btn-inline {
  width:auto;
  padding:8px 12px;
}

.link-btn {
  background:none;
  border:none;
  padding:0;
  color:#e60000;
  text-decoration:underline;
  cursor:pointer;
  font-size:0.9rem;
  display:inline-block;
  margin:6px 0;
}

.link-btn:hover {
  text-decoration:none;
}

.popup-content .form .link-btn {
  background: none;
  border: 0;
  color: #0d6efd;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: right;
  margin: 8px 0 16px 0 !important; /* top right bottom left */
}

.popup-content .form .link-btn:hover,
.popup-content .form .link-btn:focus {
  background: none;
  border: 0;
  color: #002e73;
}

/* BEGIN - SSO Login ************************************************************************/

.sso-buttons {
  margin-top: 20px;
  display:flex;
  gap:10px;
}

.sso-buttons button {
  padding:10px 14px;
  border-radius:6px;
  cursor:pointer;
}

#btn-google {
  background:#fff;
  border:1px solid #ddd;
  color:#2F2F2F;
}

#btn-microsoft {
  background:#2F2F2F;
  color:#fff;
  border:0;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  user-select: none;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  /* subtle “fancy” gradient line */
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.25), rgba(0,0,0,0));
}

.auth-separator > span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280; /* tweak to match your theme */
}

.top-menu-style {
  font-size: 0.75rem;
}

/* END - SSO Login **************************************************************************/