/* Hash Login Page Styles */

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

/* CSS Variables */
:root {
  --bg-primary: #000000;
  --bg-modal: #111111;
  --bg-input: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #d4d4d4;
  --text-muted: #737373;
  --accent-button: #1f1f1f;
  --accent-button-hover: #2a2a2a;
  --error-color: #dc2626;
  --link-color: #ffffff;
}

/* Body Styles */
body {
  font-family: apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hash Login Page Container */
.hash-login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-primary);
  padding: 20px;
}

/* Modal Container */
.hash-modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Modal Title */
.hash-modal-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text-primary);
  font-family: apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Modal Instruction Text */
.hash-modal-instruction {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 32px;
  font-family: apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hash Form */
.hash-form {
  margin-bottom: 24px;
}

/* Input Wrapper */
.hash-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

/* Hash Input Field */
.hash-input {
  width: 100%;
  padding: 14px 100px 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.hash-input:focus {
  outline: none;
  border-color: var(--border-light);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.hash-input::placeholder {
  color: var(--text-muted);
  letter-spacing: normal;
}

/* Character Counter */
.hash-char-counter {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
  font-family: 'Courier New', monospace;
}

/* Submit Button */
.hash-submit-button {
  width: 100%;
  padding: 14px;
  background: var(--accent-button);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hash-submit-button:hover:not(:disabled) {
  background: var(--accent-button-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hash-submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.hash-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error Message */
.hash-error-message {
  color: var(--error-color);
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  min-height: 20px;
  display: none;
}

.hash-error-message.show {
  display: block;
}

/* Assistance Text */
.hash-assistance-text {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
  font-family: apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hash-assistance-text a {
  color: var(--link-color);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.hash-assistance-text a:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hash-modal {
    padding: 32px 24px;
  }

  .hash-modal-title {
    font-size: 28px;
  }
}
