/* Reset and Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6)), url('tech_background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1e293b;
  overflow-x: hidden;
}

/* Header Styles */
.main-header {
  background-color: #ffffff;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-saib {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-separator {
  width: 1px;
  height: 38px;
  background-color: #e2e8f0;
  margin: 0 25px;
}

.logo-flexx {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 15px;
  color: #334155;
  font-weight: 500;
}

.lang-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.lang-toggle:hover {
  background-color: #f1f5f9;
  color: #b45309;
}

.date-time-display {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Main Container */
.login-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* Dual Column Login Card */
.login-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  overflow: visible; /* allows absolute elements like the red badge to overflow slightly */
  position: relative;
  min-height: 480px;
}

/* Card Columns */
.card-column {
  padding: 50px;
  display: flex;
  flex-direction: column;
}

.left-column {
  justify-content: flex-start;
}

.right-column {
  border-left: 1px solid #e2e8f0;
  position: relative; /* relative for floating elements */
  justify-content: flex-start;
  align-items: center;
}

/* Column Titles */
.column-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 35px;
}

.text-center {
  text-align: center;
}

/* Forms and Inputs */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  outline: none;
  transition: all 0.2s ease;
  color: #0f172a;
}

/* Standard focus styling */
.form-input:focus {
  border-color: #FFD200;
  box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.2);
}

/* The active state matching the yellow border from screenshot */
.text-input-active {
  border-color: #FFD200;
}

.form-links {
  margin-top: -5px;
}

.reset-link {
  font-size: 13px;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-block;
}

.reset-link:hover {
  text-decoration: underline;
  color: #1e40af;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-black {
  background-color: #000000;
  color: #ffffff;
  padding: 14px 35px;
  border-radius: 50px;
  width: 100%;
  max-width: 250px;
  margin-top: 10px;
}

.btn-black:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-yellow {
  background-color: #FFD200;
  color: #000000;
  padding: 12px 35px;
  border-radius: 50px;
  width: 180px;
  text-align: center;
}

.btn-yellow:hover {
  background-color: #e0b800;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 210, 0, 0.3);
}

/* Right Column Content styling */
.register-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 30px;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  margin: 15px 0;
  text-align: center;
}

/* Soft Token Section */
.soft-token-wrapper {
  margin-top: auto;
  position: relative;
  width: 100%;
  padding-top: 15px;
}

.soft-token-content {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.shield-icon-container {
  width: 55px;
  height: 65px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.soft-token-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.soft-token-title-highlight {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  background-color: #FFD200;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: -0.2px;
}

.learn-more-link {
  font-size: 13px;
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.learn-more-link:hover {
  text-decoration: underline;
  color: #475569;
}

/* Red Star Warning/Security Badge */
.badge-red-star {
  position: absolute;
  top: 55%;
  right: -18px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background-color: #dc2626;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-red-star span {
  margin-top: 8px; /* Offset to center asterisk vertically in HTML */
}

.badge-red-star:hover {
  transform: translateY(-50%) scale(1.1);
  background-color: #b91c1c;
}

/* Floating Diamond Accents */
.diamond {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid;
  transform: rotate(45deg);
  pointer-events: none;
}

.diamond-top-left {
  border-color: #FFD200;
  top: 0;
  left: -20px;
  animation: float 4s ease-in-out infinite alternate;
}

.diamond-bottom-right {
  border-color: #cbd5e1;
  bottom: 0;
  right: 10px;
  animation: float 4s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: rotate(45deg) translateY(0px); }
  100% { transform: rotate(45deg) translateY(-8px); }
}

/* Footer Styles */
.main-footer {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 860px) {
  .login-card {
    grid-template-columns: 1fr;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .right-column {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
  }
  
  .badge-red-star {
    right: 20px;
    top: -17px;
    transform: none;
  }
  
  .badge-red-star:hover {
    transform: scale(1.1);
  }
}

@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 15px;
  }
  
  .logo-separator {
    height: 25px;
    margin: 0 15px;
  }
  
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .card-column {
    padding: 30px 20px;
  }
  
  .column-title {
    font-size: 22px;
  }
}
