/* ===== ENHANCED REGISTER STYLES ===== */
:root {
  --primary-red: #e50914;
  --success-green: #28a745;
  --dark-bg: #141414;
  --light-text: #fff;
  --gray-text: #8c8c8c;
  --input-bg: rgba(51, 51, 51, 0.8);
  --card-bg: rgba(20, 20, 20, 0.9);
  --bg-opacity: 0.85;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  color: var(--light-text);
  background: 
    linear-gradient(rgba(0, 0, 0, var(--bg-opacity)), 
    rgba(0, 0, 0, var(--bg-opacity))),
    url('../images/Bg_image.jpg') no-repeat center center/cover;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom, 
    rgba(0,0,0,0.7) 0%, 
    rgba(0,0,0,0) 20%, 
    rgba(0,0,0,0) 80%, 
    rgba(0,0,0,0.7) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 20px 4%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.logo img {
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ===== REGISTER CARD ===== */
.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 100px 20px;
  position: relative;
  z-index: 1;
}

.register-card {
  background: var(--card-bg);
  width: 100%;
  max-width: 450px;
  padding: 60px 68px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.6s ease-out;
  margin-bottom: 40px;
}

.register-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--light-text);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-input {
  width: 100%;
  height: 50px;
  padding: 16px 20px 0;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--light-text);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.3);
}

.form-label {
  position: absolute;
  top: 16px;
  left: 20px;
  color: var(--gray-text);
  font-size: 16px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 7px;
  font-size: 11px;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 15px;
  color: var(--gray-text);
  cursor: pointer;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--light-text);
}

/* ===== BUTTON STYLES ===== */
.register-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.register-btn:hover {
  background: #f40612;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(229, 9, 20, 0.4);
}

.register-btn i {
  transition: transform 0.3s ease;
}

.register-btn:hover i {
  transform: translateX(3px);
}

/* ===== HELP TEXT ===== */
.register-help {
  margin-top: 2.0rem;
  color: var(--gray-text);
  text-align: center;
  font-size: 15px;
}

/* ===== FOOTER (Updated to match login page) ===== */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 15px 4%;
  text-align: center;
  background-color: rgba(20, 20, 20, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--light-text);
}

.footer-content p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--light-text); /* White text */
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .footer-content p {
    position: static;
    transform: none;
    order: 2;
  }
  
  .footer-links {
    order: 1;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .register-card {
    padding: 50px 40px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 12px 4%;
  }
  
  .footer-links a {
    font-size: 12px;
  }
  
  .register-card {
    padding: 40px 30px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== MESSAGE BOX STYLES (to match login page) ===== */
.message-box {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  border: 1px solid transparent;
  animation: fadeInMessage 0.5s ease-out;
}
.success-message {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}
.error-message-box {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}
@keyframes fadeInMessage {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
