html, body {
    height: 100%;
    margin: 0;
}

.page-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    /* background-color: #f8f9fa; */
}

.form-box {
    background-color: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.432);
    width: 100%;
    max-width: 400px;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0073b1; 
}

.form-field {
    margin-bottom: 1rem;
}

textarea{
    resize: none;
}

.upload-btn {
    
    display: inline-block;          /* critical */
    justify-content: space-between;
    width: 70%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    text-align: center;      /* center text */
    cursor: pointer;        /* makes it feel clickable */
    background-color: #0073b1;
    color: white;
}

.upload-btn:hover {
    background-color: #0073b19f;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
}

.error p {
    color: red;
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #0073b1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #0073b19f;
}

.profile-picture-field {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%; /* circle like Facebook */
    margin-bottom: 0.5rem;
    border: 2px solid #ccc;
}

.logo {
    text-decoration: none;
    font-size: 40px;
    font-weight: bold;
    color: #0073b1; /* your blue */
    
}

#logo {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 30px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-height: 40px;
}

.skills-container input {
    border: none;
    flex: 1;
    min-width: 120px;
    padding: 0.25rem;
    outline: none;
}

.skill-tag {
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.skill-tag .remove-tag {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}

#id_profile_picture {
    position: absolute;
    left: -9999px;
}

.messages .success {
    background-color: #d4edda;
    color: #155724;
}

.messages .error {
    background-color: #f8d7da;
    color: #721c24;
}


@media (max-width: 600px) {
    .form-box {
        width: 80%;
        height: auto;
    }
}