/* CSS Variables */
:root {
  --primary-gold: #d79a00;
  --secondary-gold: #f4c430;
  --dark-gold: #b8860b;
  --light-gold: #ffd700;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #666666;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Main Container */
.auth-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 20px 20px 20px; /* Even less top/bottom */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  margin: 20px;
  perspective: 1000px;
}

/* Rotating Border Animation */
.auth-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  z-index: 2;
}



/* Inner Box */
.auth-card::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: var(--white);
  border-radius: 20px;
  z-index: -1;
}

/* Header Styles */
.auth-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 3;
}

.auth-header h2 {
  color: var(--black);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header p {
  color: var(--gray);
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

/* Error Message */
.error-message {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border: none;
  color: var(--white);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 3;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group label {
  color: var(--black);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.form-group input {
  padding: 15px 20px;
  border: 2px solid #e1e1e1;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 4px rgba(215, 154, 0, 0.1);
  transform: translateY(-2px);
}

.form-group input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Button Styles */
.auth-button {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(215, 154, 0, 0.3);
}

.auth-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(215, 154, 0, 0.4);
}

.auth-button:active {
  transform: translateY(-1px);
}

/* Footer Styles */
.auth-footer {
  text-align: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 3;
}

.auth-footer p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

.auth-link {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.auth-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  transition: width 0.3s ease;
}

.auth-link:hover {
  color: var(--dark-gold);
}

.auth-link:hover::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
    margin: 10px;
    border-radius: 10px;
  }
  
  .auth-card::before {
    border-radius: 17px;
  }
  
  .auth-card::after {
    border-radius: 14px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .auth-header h2 {
    font-size: 28px;
  }
  
  .auth-header p {
    font-size: 14px;
  }
  
  .auth-button {
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* Checkbox Styles */
.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--black);
  font-weight: 500;
  transition: color 0.3s ease;
}

.checkbox-label:hover {
  color: var(--primary-gold);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary-gold);
  border-radius: 4px;
}

/* Form Help Text */
.form-help {
  color: var(--gray);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 400;
}