/* =========================
   AEGIS GLOBAL CAPITAL UI Styles
   ========================= */

/* Root variables */
:root {
  --brand-red: #ff4d4f;
  --brand-red-dark: #e63e40;
  --text-dark: #111;
  --text-light: #666;
  --bg-light: #fff;
  --bg-grey: #f9f9f9;
  --border-color: #ddd;
  --radius: 6px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-family: 'Poppins', Arial, sans-serif;
}

/* Global Reset */
body {
  /*margin: 0;*/
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
 /* background: linear-gradient(135deg, var(--brand-red), var(--brand-navy));*/
  color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5rem;
  /*font-weight: 600;*/
  color: #fff;
  font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 700; /* Bold for main titles */
}

h2 { 
    font-size: 2rem; 
    font-weight: 600; /* Semi-bold for section headings */
}

h3 { 
    font-size: 1.75rem; 
    font-weight: 600;
}

h4 { 
    font-size: 1.5rem; 
    font-weight: 500;
}

h5 { 
    font-size: 1.25rem; 
    font-weight: 500;
}

h6 { 
    font-size: 1rem; 
    font-weight: 500;
}

a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--brand-red-dark);
}

/* Container */
.my_ctnr_narrow {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Branding */
.header .brand {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 2rem;
}

/* Card */
.login-card {
  background: var(--bg-grey);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.login-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #b9adad;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(255,77,79,0.2);
}

/* Button */
.btn-primary {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: var(--radius);
  background: var(--brand-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
}

/* Links under form */
.form-links {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  /*background: #111;*/
  color: #ccc;
  /*margin-top: 3rem;*/
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  color: #ccc;
}
.footer-col ul li a:hover {
  color: var(--brand-red);
}

/* Language Selector */
.footer-col select {
  padding: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid #444;
  background: #222;
  color: #fff;
}
.bg_footer{
  background: #222;
}

.dashboard_footer{
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: -1rem;
  margin-left: -1rem;
  margin-right: -1rem;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* Responsive (tablet + desktop) */
@media (min-width: 768px) {
  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-col {
    flex: 1;
  }
}


/* =========================
   Popup Overlay
/* =========================
   Popup Overlay
   ========================= */
.popup-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100vh;
  display: none;              /* hidden by default */
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */
  z-index: 2147483647;        /* stay above all */
  background: rgba(0,0,0,0.6); /* dark backdrop */
  padding: 1rem;
  box-sizing: border-box;
}









/* Animation 
@keyframes ft-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
*/

/* Popup overlay - must cover screen */
#popupOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: none;               /* hidden by default */
  align-items: center;         /* vertical center */
  justify-content: center;     /* horizontal center */
  background: rgba(0,0,0,0.6); /* dark backdrop */
  z-index: 999999;             /* always on top */

}

/* Popup box (the card) */
#popupOverlay .popup-box {
  position: relative;
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  animation: fadeInUp 0.25s ease both;
}

#popupOverlay .popup-box h3 {
  margin-bottom: 0.75rem;
  color: var(--brand-red, #c00);
}

#popupOverlay .popup-box p {
  margin-bottom: 1.25rem;
  color: var(--text-dark, #333);
  line-height: 1.4;
}

/* Close button (X) */
.popup-close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease;
}
.popup-close-btn:hover { color: var(--brand-red, #c00); }

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.txt_black{
  color: var(--text-dark);
}

.txt_white{
  color: #fff;
}
.pb_1{
  padding-bottom: 1rem;
}
.mb_1{
  margin-bottom: 1rem;
}

.mb_2{
  margin-bottom: 2rem;
}
.mb_4{
  margin-bottom: 4rem;
}

.pb_4{
  padding-bottom: 4rem;
}
.pt_4{
  padding-top: 4rem;
}

.mt_4{
  margin-top: 4rem;
}

/* Container to center the form */
.form-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(-45deg, #d64545, #ff6b6b, #1a2a6c, #2b5876);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

/* Form Card */
.form-card {
  /*background: #fff;*/
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  /*width: 100%;
  max-width: 600px; /* wider on desktop */
}

/* Headings */
.form-card h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #d64545;
}

/* Labels */
.form-card label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #b9adad;
}

/* Inputs + Selects */
.form-card input,
.form-card select {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-card input:focus,
.form-card select:focus {
  border-color: #d64545;
  box-shadow: 0 0 6px rgba(214, 69, 69, 0.3);
  outline: none;
}

/* Checkbox 
.checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
  */
.checkbox input {
  margin-right: 0.5rem;
}

/* Buttons */
.btn-primary {
  display: block;
  width: 100%;
  background: #d64545;
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #b73737;
}

/* Links */
.form-card a {
  color: #d64545;
  text-decoration: none;
}
.form-card a:hover {
  text-decoration: underline;
}

/* Background gradient animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Auth page wrapper 
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #d64545, #ff6b6b, #1a2a6c, #2b5876);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  padding: 1rem;
}
*/
/* Auth card 
.auth-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 420px;
}
*/
.auth-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #d64545;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}
.form-group input,
.form-group select {
  position:relative;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.checkbox {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}
.checkbox label {
  margin-left: 0.5rem;
}

.btn-primary {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  background: #d64545;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #b73737;
}

.switch-auth {
  text-align: center;
  margin-top: 1rem;
}

.footer {
  background: rgba(0,0,0,0.9);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}
.footer-links a {
  margin: 0 0.8rem;
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.language-selector select {
  margin-top: 1rem;
  padding: 0.4rem;
  border-radius: 4px;
}

/* Background animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Ensure wrapper fills screen and footer sticks at bottom */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Center the card properly */
.auth-wrapper {
  flex: 1; /* take remaining space */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(-45deg, #d64545, #ff6b6b, #1a2a6c, #2b5876);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* Auth card */
.auth-card {
  background: transparent;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 420px;
}

/* Responsive: make it breathe on smaller screens */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
    border-radius: 8px;
  }
}


.popup-overlay-custom {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.7);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
}
.popup-box-custom {
  background:#fff;
  padding:2rem;
  border-radius:12px;
  max-width:420px;
  width:90%;
  text-align:center;
}
.popup-box-custom h3 {
  margin-bottom:1rem;
  color:#d64545;
}
.popup-box-custom p {
  margin:0.5rem 0;
}
.popup-box-custom button {
  margin-top:1rem;
  padding:0.7rem 1.2rem;
  border:none;
  border-radius:6px;
  background:#d64545;
  color:#fff;
  cursor:pointer;
}

