:root {
  --red: #e50914;
  --black: #111;
  --white: #fff;
  --gray: #f5f5f5;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--gray);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Wrapper */
.auth-wrapper {
  display: flex;
  width: 900px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.4s ease-in-out;
}

/* Left - Form */
.auth-form {
  flex: 1;
  padding: 3rem 2rem;
  background-color: #fff;
}

.auth-form h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  width: 100%;
  max-width: 350px;
  transition: border 0.3s ease;
}

.auth-form input:focus {
  border-color: var(--red);
  outline: none;
}

.auth-form button {
  background-color: var(--red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  max-width: 180px;
  transition: background 0.3s ease;
}

.auth-form button:hover {
  background-color: #c50711;
}

.auth-links {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.auth-links a {
  color: var(--red);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Right - Image */
.auth-image {
  flex: 1;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Messages */
.success {
  color: green;
  margin-bottom: 1rem;
}

.error {
  color: red;
  margin-bottom: 1rem;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .auth-wrapper {
    flex-direction: column;
    width: 90%;
    height: auto;
  }

  .auth-image {
    display: none;
  }

  .auth-form {
    padding: 2rem 1.5rem;
  }

  .auth-form input,
  .auth-form button {
    max-width: 100%;
  }
}
