/* General body styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #cceeff, #e3f0ff);
}

html, body {
    overflow: hidden;
    height: 100%;
}

/* Login container styling */
.register-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 300px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    text-align: center;
    width: 60%;
}

/* Style form and its children uniformly */
.register-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Styling for the password input field */
input {
    width: 240px;
    padding: 0.6rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  user-select: none;
  max-width: 240px;
  line-height: 1.4;
  text-align: left;
}

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.custom-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #ff6781;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox a {
  color: #ff6781;
  text-decoration: none;
  font-weight: 500;
}

.custom-checkbox a:hover {
  text-decoration: underline;
  color: #e3576f;
}



/* Error message styling */
.error-message {
    color: #ff4b5c;
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 0.4s forwards;
    margin-bottom: 0.5rem;
}

/* Button styling */
.create-account-btn {
    width: 240px;
    font-size: 1rem;
    padding: 0.75rem;
    background-color: #ff6781;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

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

.login-btn {
    background: none;
    border: none;
    color: #ff6781;
    font-size: 0.98rem;
    padding: 0;
    margin-top: 0.25rem;
    text-decoration: underline;
    cursor: pointer;
    width: auto;
    box-shadow: none;
    font-weight: normal;
    transition: color 0.15s;
}

.login-btn:hover {
    color: #e3576f;
    text-decoration: underline;
}

.divider {
    text-align: center;
    width: 100%;
    color: #aaa;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

#blossomCanvas {
    z-index: 0;
}
  
#heartCanvas {
    z-index: 1;
}
  
/* Error fade animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
