/* ================================
   SalvinCars Auth – Refined Black & Gold
   ================================ */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2c2c2c;
  --accent-color: #d4af37;
  --text-color: #f5f5f5;
  --border-color: #444;
  --white: #fff;
  --error-color: #ff4d4d;
  --success-color: #2a9d8f;
  --shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: radial-gradient(circle at center, #000 60%, #1a1a1a);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text-color);
}

/* Back to Home Header */
.auth-header {
  position: absolute;
  top: 25px;
  left: 25px;
}

.back-home {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: 500;
  transition: 0.3s;
  font-size: 0.95rem;
}

.back-home:hover {
  color: var(--white);
  text-shadow: 0 0 5px var(--accent-color);
}

/* Logo Styling */
.auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.auth-logo img {
  width: 90px;
  border-radius:25px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  transition: transform 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.05);
}

/* Auth Container */
.auth-container {
  background: var(--secondary-color);
  padding: 2.5rem 2rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  text-align: center;
  border: 1px solid var(--border-color);
  animation: fadeIn 0.6s ease;
}

.auth-container h2 {
  font-size: 1.6rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.auth-container p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  transition: 0.3s;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

/* Buttons */
.auth-form button {
  background: linear-gradient(135deg, var(--accent-color), #b89628);
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.auth-form button:hover {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
}

/* Links */
.auth-links {
  margin-top: 1rem;
}

.auth-links a {
  color: var(--accent-color);
  font-size: 0.9rem;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* File Inputs */
input[type="file"] {
  background: #222;
  border: 1px dashed var(--accent-color);
  color: #ccc;
}

/* Alerts */
.alert {
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: left;
}

.alert.error {
  background: rgba(255, 77, 77, 0.1);
  color: var(--error-color);
  border-left: 3px solid var(--error-color);
}

.alert.success {
  background: rgba(42, 157, 143, 0.1);
  color: var(--success-color);
  border-left: 3px solid var(--success-color);
}

/*Toast Messages*/
.toast-container {position: fixed;top: 20px;right: 20px;z-index: 9999;display: flex;flex-direction: column;gap: 12px;}
.toast-alert {background: rgba(0,0,0,0.85);color: #fff;padding: 12px 18px;border-radius: 6px;display: flex;align-items: center;justify-content: space-between;min-width: 260px;box-shadow: 0 4px 14px rgba(0,0,0,0.4);animation: fadeIn 0.3s ease-out;}
.toast-alert.success { border-left: 4px solid #0f0; }
.toast-alert.error   { border-left: 4px solid #f33; }
.toast-alert.warning { border-left: 4px solid #ffb300; }
.toast-alert.info    { border-left: 4px solid #09f; }
.toast-alert .toast-close {background: none;border: none;color: #fff;font-size: 18px;cursor: pointer;}

.form-footer{
    display:block;
    
    a{
        color: var(--white);
    }
    a:hover{
        color: var(--accent-color);
    }
}
.forgot-btn{background: crimson;border: none;color: var(--white);font-size: 0.75rem;font-weight: 350;padding: 0.5rem 0.75rem;border-radius: 8px;cursor: pointer;transition: 0.3s ease;}
.forgot-btn a{text-decoration:none;color: var(--white);}
.register-btn{background: green;border: none;color: var(--white);font-size: 0.75rem;font-weight: 350;padding: 0.5rem 0.75rem;border-radius: 8px;cursor: pointer;transition: 0.3s ease;}
.register-btn a{text-decoration:none;color: var(--white);}
/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .auth-container {
    padding: 2rem 1.2rem;
  }
}
