/* General Page Styling */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #333;
}
  
/* Form Container */
.form-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    width: 95%;
    max-width: 500px;
    height: 90vh;                
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}
  
.form-container h2 {
    margin: 0 0 15px;
    font-size: 22px;
    font-weight: 600;
    color: #2575fc;  
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
  
form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Input Fields */
form input,
form textarea {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: none;
  border-bottom: 2px solid #ccc;
  outline: none;
  font-size: 14px;
  resize: none;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-bottom: 2px solid #2575fc;
}
  

/* Inline input rows */
.form-row {
    display: flex;
    gap: 10px;
}
  
.form-row input {
    flex: 1;
}

/* Labels for groups */
.form-group {
    text-align: left;
    margin: 10px 0;
}
  
.form-group .label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}
  
/* Radio & Checkbox Styling */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 5px;
    transform: scale(1.05);
    cursor: pointer;
}
  
.form-group label {
    margin-right: 10px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
}
  
.form-group.checkbox label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
}
  
/* Buttons */
form button {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: #2575fc;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s ease;
}
  
form button:hover {
    background: #6a11cb;
}
  
/* Switch Links */
.switch-link {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
}
  
.switch-link a {
    color: #2575fc;
    text-decoration: none;
}
  
.switch-link a:hover {
    text-decoration: underline;
}
  
/* Responsive */
@media (max-height: 700px) {
    .form-container {
      padding: 15px;
      height: auto;
    }
}
  