/* Authentication Styles - Exact match to provided design */
.auth-container {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b2852 0%, #4a1b3b 100%);
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  overflow: auto;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.auth-logo,
.dice-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  display: block;
}

.auth-card h1,
.auth-card h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 0;
}

.error-message {
  background-color: #f8d7da;
  border: 1px solid #f1aeb5;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  animation: successFadeIn 0.5s ease-in;
}

@keyframes successFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.auth-form input,
.form-group input {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: #666;
}

.auth-form input:focus,
.form-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.auth-form input::placeholder,
.form-group input::placeholder {
  color: #999;
  font-style: normal;
}

.auth-form input:disabled,
.form-group input:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-hint {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 5px;
  font-style: italic;
}

.auth-button {
  background: linear-gradient(135deg, #c8102e 0%, #2c3e50 100%);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0 15px 0;
  width: 100%;
}

.auth-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.auth-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-switch {
  text-align: center;
  margin-top: 15px;
  color: #aaa;
  font-size: 0.9rem;
}

.link-button {
  background: none;
  border: none;
  color: #c8102e;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  font-weight: 600;
}

.link-button:hover:not(:disabled) {
  color: #a00824;
}

.link-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: center;
}

.message.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  border: 1px solid #f1aeb5;
  color: #721c24;
}

.message.info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.message.warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.back-arrow {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-arrow:hover {
  color: #b1b3b3;
  transform: translateX(-50%) translateX(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .auth-container {
    padding: 15px;
  }
  
  .auth-card {
    padding: 30px 25px;
    max-width: 380px;
  }
  
  .auth-card h1,
  .auth-card h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .dice-logo {
    width: 70px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 10px;
  }
  
  .auth-card {
    padding: 25px 20px;
    max-width: 340px;
  }
  
  .auth-card h1,
  .auth-card h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }
  
  .dice-logo {
    width: 65px;
  }
  
  .form-group input {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .auth-button {
    padding: 12px;
    font-size: 0.95rem;
  }
}