/* ============================================
   DarkOrbit Reloaded Login Page Styles
   (Gunmetal HUD frame system)
   ============================================ */

:root {
  --steel-highlight: #708aa8;
  --steel-top: #3d546e;
  --steel-mid: #1a2634;
  --steel-bot: #0a1018;

  --inner-rim-top: #2c4258;
  --inner-rim-bot: #0e1620;

  --panel-top: rgba(13, 20, 30, 0.94);
  --panel-bot: rgba(7, 11, 17, 0.96);

  --input-bg: #070b10;
  --input-border: #223448;
  --input-text: #e0f0ff;
  --input-placeholder: #576d84;

  --cyan-bright: #00bfff;
  --cyan-glow: rgba(0, 191, 255, 0.45);

  --text-main: #cadde8;
  --text-muted: #667c94;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  background: #04070a;
  font-family: 'Rajdhani', 'Segoe UI', Tahoma, Verdana, Arial, sans-serif;
}

/* ============================================
   Main Login Page Container
   ============================================ */
.do-login-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #04080e url('/img/bgindex2.png') no-repeat center center / cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Logo
   ============================================ */
.do-login-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -60px;
}

.do-logo {
  text-align: center;
  margin-bottom: 40px;
}

.do-logo-title {
  font-family: 'cfont1', 'Segoe UI', sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 8px;
  text-shadow:
    0 0 10px rgba(0, 150, 255, 0.5),
    0 0 30px rgba(0, 150, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.do-logo-subtitle {
  font-family: 'cfont1', 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #00ccff;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin-top: 5px;
  text-shadow:
    0 0 15px rgba(0, 204, 255, 0.6),
    0 0 30px rgba(0, 204, 255, 0.3);
}

@font-face {
  font-family: 'cfont1';
  src: url('/fonts/CopperplateGothic-Bold.eot?#iefix') format('embedded-opentype'),
       url('/fonts/CopperplateGothic-Bold.woff') format('woff'),
       url('/fonts/CopperplateGothic-Bold.ttf') format('truetype'),
       url('/fonts/CopperplateGothic-Bold.svg#CopperplateGothic-Bold') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* =========================================================
   3D GUNMETAL FRAME SYSTEM
   ========================================================= */
.frame-outer {
  background: linear-gradient(180deg, var(--steel-highlight) 0%, var(--steel-top) 8%, var(--steel-mid) 40%, var(--steel-bot) 100%);
  padding: 1px;
  position: relative;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9));
}

.frame-mid {
  background: linear-gradient(180deg, #1b2838 0%, #101824 50%, #0a0e14 100%);
  padding: 4px;
  width: 100%;
  height: 100%;
}

.frame-inner {
  background: linear-gradient(180deg, var(--inner-rim-top) 0%, var(--inner-rim-bot) 100%);
  padding: 1px;
  width: 100%;
  height: 100%;
}

.panel-core {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bot) 100%);
  width: 100%;
  height: 100%;
  position: relative;
  box-shadow: inset 0 1px 12px rgba(0, 191, 255, 0.08);
}

.panel-core::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.5), transparent);
  pointer-events: none;
}

/* Exact chamfer angles across layers */
.clip-20 {
  clip-path: polygon(
    18px 0, calc(100% - 18px) 0,
    100% 18px, 100% calc(100% - 18px),
    calc(100% - 18px) 100%, 18px 100%,
    0 calc(100% - 18px), 0 18px
  );
}

.clip-16 {
  clip-path: polygon(
    16px 0, calc(100% - 16px) 0,
    100% 16px, 100% calc(100% - 16px),
    calc(100% - 16px) 100%, 16px 100%,
    0 calc(100% - 16px), 0 16px
  );
}

.clip-13 {
  clip-path: polygon(
    13px 0, calc(100% - 13px) 0,
    100% 13px, 100% calc(100% - 13px),
    calc(100% - 13px) 100%, 13px 100%,
    0 calc(100% - 13px), 0 13px
  );
}

.clip-11 {
  clip-path: polygon(
    11px 0, calc(100% - 11px) 0,
    100% 11px, 100% calc(100% - 11px),
    calc(100% - 11px) 100%, 11px 100%,
    0 calc(100% - 11px), 0 11px
  );
}

/* =========================================================
   CENTRAL LOGIN MODULE
   ========================================================= */
.login-box {
  width: 420px;
  margin-bottom: 12px;
}

.login-content {
  padding: 30px 38px 32px;
}

.panel-header {
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
  text-shadow: 0 0 12px rgba(0, 191, 255, 0.65);
}

.input-row {
  position: relative;
  margin-bottom: 13px;
}

.game-input {
  width: 100%;
  height: 44px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 0 42px 0 14px;
  color: var(--input-text);
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  outline: none;
  transition: all 0.2s;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85);
}

.game-input:focus {
  border-color: var(--cyan-bright);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 191, 255, 0.35);
}

.game-input::placeholder {
  color: var(--input-placeholder);
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--input-placeholder);
  pointer-events: none;
}

/* Options row */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
  font-size: 0.85rem;
  font-weight: 600;
}

.remember-wrap {
  display: flex;
  align-items: center;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.5px;
}

.remember-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
}

.remember-wrap input[type="checkbox"]:checked {
  background: #006699;
  border-color: var(--cyan-bright);
}

.remember-wrap input[type="checkbox"]:checked::after {
  content: '\2714';
  position: absolute;
  color: #ffffff;
  font-size: 10px;
  top: -1px;
  left: 2px;
}

.forgot-link {
  color: var(--cyan-bright);
  text-decoration: none;
  transition: opacity 0.2s;
}

.forgot-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* =========================================================
   METALLIC GEL ACTION BUTTONS (with top specular glare)
   ========================================================= */
.btn-outer {
  width: 100%;
  background: linear-gradient(180deg, #3d6e9e 0%, #152d44 100%);
  padding: 1px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.65);
}

.btn-outer:hover {
  filter: brightness(1.2);
}

.btn-outer:active {
  transform: scale(0.99);
}

.btn-core {
  width: 100%;
  height: 45px;
  background: linear-gradient(180deg, #184c7a 0%, #0d2842 45%, #103152 100%);
  border: none;
  color: #ffffff;
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}

.btn-core::after {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* =========================================================
   REGISTER BANNER (narrower than login box)
   ========================================================= */
.register-box {
  width: 360px;
}

.register-content {
  padding: 20px 32px 22px;
  text-align: center;
}

.join-title {
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  color: var(--cyan-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.join-text {
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 15px;
  line-height: 1.35;
}

.btn-register-core {
  height: 38px;
  font-size: 0.75rem;
  letter-spacing: 3px;
}

/* =========================================================
   HUD CORNER WIDGETS
   ========================================================= */
.hud-widget {
  position: absolute;
  bottom: 30px;
  width: 260px;
}

.hud-outer {
  background: linear-gradient(180deg, var(--steel-top) 0%, var(--steel-bot) 100%);
  padding: 1px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
}

.hud-mid {
  background: linear-gradient(180deg, #192533 0%, #0d131a 100%);
  padding: 2px;
}

.hud-inner {
  background: linear-gradient(180deg, var(--inner-rim-top) 0%, var(--inner-rim-bot) 100%);
  padding: 1px;
}

.hud-core {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bot) 100%);
  padding: 14px 18px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.widget-left {
  left: 30px;
}

.widget-right {
  right: 30px;
}

.hud-header {
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.server-status-row {
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  color: #00ff66;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #00ff66;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px #00ff66;
}

.server-players {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.news-text {
  color: var(--text-main);
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.news-link {
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  color: var(--cyan-bright);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  float: right;
}

.news-link:hover {
  text-decoration: underline;
}

/* Footer copyright */
.footer-copy {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
  color: #384d63;
  font-family: 'Orbitron', 'Segoe UI', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 10;
}

@media (max-height: 720px) {
  .hud-widget { display: none; }
}

/* ============================================
   Auth Messages
   ============================================ */
.auth-message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 3px;
  border: 1px solid #3a4552;
  background: rgba(255, 255, 255, 0.03);
  color: #97a4b0;
  font-size: 12px;
  line-height: 1.5;
}

.auth-message.is-success {
  border-color: #2fbf71;
  background: rgba(47, 191, 113, 0.08);
  color: #4fd68a;
}

.auth-message.is-error {
  border-color: #d9534f;
  background: rgba(217, 83, 79, 0.08);
  color: #e8807c;
}

.auth-resend {
  margin-top: 12px;
  font-size: 11px;
  text-align: center;
}

.auth-resend a {
  color: #4aa8ff;
  cursor: pointer;
  text-decoration: none;
}

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

/* ============================================
   Register Modal (kept from original)
   ============================================ */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
}

.modal:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  width: 100%;
  max-width: 500px;
  margin: 20px;
}

.modal-content {
  background: #0a0e13;
  border: 1px solid #1c2b22;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.06);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close_login {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
}

.closebtn {
  text-decoration: none;
  font-size: 35px;
  font-weight: bold;
  color: #666;
  transition: color 0.2s ease;
}

.closebtn:hover {
  color: #fff;
}

.container_register {
  padding: 20px 30px 30px;
}

.register-title {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #817b6e;
  background-position-y: -2px;
  background-size: 24px;
  text-shadow: 0 0 0.001rem rgb(129, 123, 109);
  font-family: cfont1;
  font-size: 18px;
  margin: 0;
}

/* Register Form Styles */
.auth-form {
  text-align: left;
  width: 100%;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 6px 0;
  font-size: 11px;
  color: #7d8b98;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.auth-field input.input,
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif;
  background: #0a0e13;
  color: #e8eef5;
  border: 1px solid #24303b;
  border-radius: 3px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input.input:focus,
.auth-field input[type="text"]:focus,
.auth-field input[type="email"]:focus,
.auth-field input[type="password"]:focus {
  outline: none;
  border-color: #00ff66;
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.12);
}

.auth-field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.auth-field-inline label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: #97a4b0;
}

.auth-field-inline input[type="checkbox"] {
  display: inline-block !important;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #00ff66;
}

.auth-submit {
  display: block;
  width: 100%;
  background: #00ff66;
  color: #04120a;
  border: none;
  border-radius: 3px;
  padding: 11px 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
  transition: box-shadow 0.15s ease, transform 0.08s ease;
}

.auth-field-inline .auth-submit {
  width: auto;
  flex: 0 0 auto;
}

.auth-submit:hover:not(:disabled) {
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.4);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

/* ============================================
   Scrollbar
   ============================================ */
@media (min-width: 650px) {
  ::-webkit-scrollbar {
    width: 7px;
  }

  ::-webkit-scrollbar-track {
    background: #000;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6dce23, #7b9100);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #6fff00, #9ab500);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 480px) {
  .do-logo-title {
    font-size: 48px;
    letter-spacing: 4px;
  }

  .do-logo-subtitle {
    font-size: 20px;
    letter-spacing: 8px;
  }

  .login-box,
  .register-box {
    width: 280px;
  }
}

@media screen and (max-width: 360px) {
  .do-logo-title {
    font-size: 36px;
  }

  .do-logo-subtitle {
    font-size: 16px;
    letter-spacing: 6px;
  }

  .login-box,
  .register-box {
    width: 260px;
  }
}
