/* Page spacing */
.wrapper {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Center column styling */
.col-md-6 {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Title */
h2 {
    font-weight: 700;
    margin-bottom: 1.8rem;
    text-align: center;
}

/* Form paragraphs (Django form.as_p renders <p>) */
form p {
    margin-bottom: 1.2rem;
}

/* Labels */
form label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    display: block;
}

/* Inputs */
form input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

/* Input focus effect */
form input:focus {
    border-color: lightgrey;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
    outline: none;
}

/* Help text */
form .helptext {
    font-size: 0.8rem;
    color: #777;
}

/* Error messages */
form .errorlist {
    color: #c0392b;
    font-size: 0.85rem;
    list-style: none;
    padding-left: 0;
    margin-top: 0.4rem;
}

form .helptext {
    display: none;
}

form input:focus + .helptext {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.5rem;
}

/* Hide all default help text */
.helptext {
    display: none;
}

/* Clean error messages */
.form-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* Improve input consistency */
form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    transition: 0.2s ease;
}

/* Button styling */
.btn-primary {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    font-weight: 500;
    background-color: royalblue;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: none;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

/* Button hover */
.btn-primary:hover {
    background-color: #3E63D3;
    transform: translateY(-1px);
}

/* Bottom text */
.mt-3 {
    text-align: center;
    font-size: 0.9rem;
}

/* Link styling */
.mt-3 a {
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.mt-3 a:hover {
    border-bottom: 1px solid #000;
}