body {
    background: grey;
    font-family: "Segoe UI", Arial, sans-serif;
}

#container {
    width: 380px;
    min-height: 280px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

#head {
    background: #2196F3;
    width: 100%;
    height: 55px;
    text-align: center;
    line-height: 55px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.errorlist {
    color: #d32f2f;
    list-style-type: none !important;
    margin-top: 5px;
    padding-left: 0;
    text-align: left;
    font-size: 14px;
}

label {
    font-size: 15px;
    margin-bottom: 5px;
    display: block;
    text-align: left;
    color: #333;
}

input {
    padding: 8px 10px;
    width: 85%;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 5px rgba(33,150,243,0.4);
}

/* Captcha styling */
#captchaImage {
    margin: 10px auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fafafa;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    width: 200px;   /* match your Python width */
    height: 60px;   /* match your Python height */
}

/* Captcha input field */
#captchaInput {
    width: 60%;         /* narrower input */
    margin-top: 6px;
    padding: 6px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Refresh button styling */
#refreshCaptcha {
    background: none;
    border: none;
    color: #2196F3;
    font-size: 13px;
    cursor: pointer;
    margin-top: 5px;
}

#refreshCaptcha:hover {
    text-decoration: underline;
}

/* Error message styling */
#captchaError {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

#btnContainer {
    text-align: center;
    padding: 10px;
}

#btnSubmit {
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 100px;
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

#btnSubmit:hover {
    background: #1976D2;
}

#formContainer {
    text-align: center;
    padding: 20px;
}
