:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --error-color: #ff0000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Courier New', Courier, monospace;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  z-index: 10;
}

h1 {
  font-size: 1.5rem;
  letter-spacing: 3px;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 400;
}

#countdown-view {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2cm;
}

#countdown-timer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.time-value {
  font-size: 2.875rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.time-label {
  font-size: 0.92rem;
  letter-spacing: 3px;
  color: #999;
}

.time-separator {
  font-size: 2.3rem;
  font-weight: bold;
  padding-bottom: 20px;
  animation: pulse 1s infinite alternate;
}

#access-form {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #333;
  color: var(--text-color);
  font-family: inherit;
  font-size: 1.5rem;
  padding: 15px 0;
  text-align: center;
  outline: none;
  transition: border-color 0.3s;
  letter-spacing: 5px;
  margin-bottom: 20px;
  border-radius: 0;
}

input:focus {
  border-bottom-color: var(--text-color);
}

input::placeholder {
  color: #999;
  letter-spacing: 2px;
  font-size: 1rem;
}

button {
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 30px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

input:focus+button,
input:not(:placeholder-shown)+button {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

button:hover {
  background: #ccc;
}

.footer {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
}

#admin-text {
  color: #333;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#admin-text a {
  color: #333;
  text-decoration: underline;
  transition: color 0.3s;
}

#admin-text a:hover {
  color: #666;
}


/* Utility */
.hidden {
  display: none !important;
}

/* Navigation Links */
.navigation-links {
  margin-top: 30px;
}

#password-link,
#back-to-email {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  cursor: pointer;
  font-family: inherit;
}

#password-link:hover,
#back-to-email:hover {
  color: var(--text-color);
  border-bottom-color: var(--text-color);
}

/* Animations */
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
  border-bottom-color: var(--error-color) !important;
}

/* Success Message */
#success-message {
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

#success-message h1 {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Fade Animations */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE DESIGN - TABLETS (768px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 350px;
  }

  h1 {
    font-size: 1.3rem;
    margin-bottom: 40px;
  }

  input {
    font-size: 1.3rem;
    padding: 12px 0;
    margin-bottom: 18px;
  }

  button {
    padding: 8px 25px;
    font-size: 0.9rem;
  }
}

/* RESPONSIVE DESIGN - MOBILE (320px to 768px) */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
    padding: 20px;
    justify-content: center;
  }

  .container {
    max-width: 100%;
    width: 100%;
    padding: 20px 15px;
    margin-top: auto;
    margin-bottom: auto;
  }

  #countdown-timer {
    width: 100%;
    padding: 0 10px;
  }

  .time-value {
    font-size: 2rem;
  }

  .time-separator {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 35px;
  }

  #access-form {
    margin-bottom: 15px;
  }

  input {
    width: 100%;
    font-size: 1.2rem;
    padding: 12px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #333;
  }

  input::placeholder {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  button {
    padding: 8px 25px;
    font-size: 0.85rem;
    font-weight: bold;
  }

  .footer {
    position: relative;
    bottom: auto;
    width: 100%;
    padding: 20px 0;
    margin-top: auto;
  }

  #admin-text {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  #admin-text a {
    font-size: 0.7rem;
  }

  .navigation-links {
    margin-top: 25px;
  }

  #password-link,
  #back-to-email,
  #success-password-link {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  #success-message h1 {
    font-size: 1.1rem;
    line-height: 1.4;
  }
}

/* EXTRA SMALL DEVICES (320px to 480px) */
@media (max-width: 480px) {
  body {
    padding: 20px;
    justify-content: center;
  }

  .container {
    padding: 15px 12px;
  }

  #countdown-timer {
    gap: 8px;
    padding: 0 5px;
  }

  .time-value {
    font-size: 1.6rem;
  }

  .time-separator {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
  }

  input {
    font-size: 1.1rem;
    padding: 10px 0;
    margin-bottom: 12px;
  }

  input::placeholder {
    font-size: 0.8rem;
  }

  button {
    padding: 7px 20px;
    font-size: 0.8rem;
  }

  .navigation-links {
    margin-top: 20px;
  }

  .footer {
    padding: 25px 0 15px;
  }

  #admin-text {
    font-size: 0.65rem;
  }

  #success-message h1 {
    font-size: 1rem;
  }
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icons a {
  color: var(--text-color);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.social-icons a:hover {
  color: #999;
}