/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Norse Bold";
  src: url("assets/Norse-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Container */
.container {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  position: relative;
  width: 40%;
  background-image: url("assets/background.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-banner {
  background-color: rgba(0, 0, 0, 0.5);
  margin-top: 20vh;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.odin-logo {
  height: 100px;
  width: auto;
}

.logo-banner h1 {
  font-family: "Norse Bold", sans-serif;
  font-size: 5rem;
  color: white;
  margin: 0;
}

.image-credit {
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background-color: rgba(0, 0, 0, 0.5);
}

.image-credit a {
  color: white;
  text-decoration: underline;
}

/* Main content */
.main-content {
  width: 60%;
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
}

.form-header {
  margin-bottom: 2rem;
  max-width: 800px;
}

.intro-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.intro-text em {
  font-style: italic;
}

.call-to-action {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
}

/* Form */
.form-section {
  background-color: white;
  padding: 2rem 3rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border-radius: 8px;
}

.form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.form-row {
  display: flex;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #374151;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.form-group input {
  padding: 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

/* Validation */
.form-group input:not(:placeholder-shown):not(:focus):valid {
  border-color: #10b981;
}

.form-group input:not(:placeholder-shown):not(:focus):invalid {
  border-color: #ef4444;
}

/* Validation icons */
.validation-icon {
  position: absolute;
  right: 10px;
  top: 33px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.form-group
  input:not(:placeholder-shown):not(:focus):valid
  + .validation-icon::after {
  content: "✓";
  color: #10b981;
  opacity: 1;
}

.form-group
  input:not(:placeholder-shown):not(:focus):invalid
  + .validation-icon::after {
  content: "✗";
  color: #ef4444;
  opacity: 1;
}

/* Error messages */
.error-message {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 0.3rem;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.form-group input:not(:placeholder-shown):not(:focus):invalid ~ .error-message {
  height: auto;
  opacity: 1;
  margin-top: 0.5rem;
}

/* Form footer */
.form-footer {
  padding-left: 3rem;
}

.create-account-btn {
  background-color: #596d48;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.create-account-btn:hover {
  background-color: #4a5b3a;
}

.login-link {
  font-size: 1rem;
  color: #374151;
}

.login-link a {
  color: #596d48;
  font-weight: 600;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}