/* Login Page Styles */
:root {
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --dark-surface-lighter: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-disabled: rgba(255, 255, 255, 0.5);
  --accent-blue: #4f75ff;
  --accent-purple: #6539ff;
  --accent-gradient: linear-gradient(107deg, #00a6c4 0%, #00ccde 30%, #4f75ff 69%, #6539ff 100%);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --border-color: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --input-focus-border: rgba(79, 117, 255, 0.5);
}

/* Force dark theme on login page */
body.login-page {
  background-color: var(--dark-bg) !important;
  color: var(--text-primary) !important;
}

body.login-page #page,
body.login-page .site-content,
body.login-page .content-area,
body.login-page .site-main,
.login-page-area,
.login-page-main {
  background-color: var(--dark-bg) !important;
}

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Roboto:wght@300;400;500&display=swap");

.login-page-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.login-container {
  width: 100%;
  max-width: 480px;
  background-color: var(--dark-surface);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  margin-bottom: 20px;
}

.login-logo img {
  max-height: 60px;
  width: auto;
}

.login-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.login-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
}

.login-error {
  background-color: rgba(255, 87, 87, 0.1);
  border-left: 3px solid #ff5757;
  color: #ff5757;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

.login-form {
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  height: 50px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 2px rgba(79, 117, 255, 0.2);
}

.remember-me {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-container {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.forgot-password {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

.login-button {
  width: 100%;
  height: 50px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 90px;
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.login-footer {
  text-align: center;
  margin-top: 30px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
}

.login-footer a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-footer a:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

.login-gradient {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.1;
  top: -200px;
  right: -200px;
  z-index: 0;
}

/* Responsive styles */
@media (max-width: 576px) {
  .login-container {
    padding: 30px 20px;
  }
  
  .login-title {
    font-size: 20px;
  }
  
  .login-subtitle {
    font-size: 14px;
  }
  
  .remember-me {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .forgot-password {
    margin-top: 10px;
  }
}
