header {
    height: auto;
}

footer {
    margin-top: 114px;
}

.account-section {

}

.account-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px;
    margin-top: 30px;
}

.account-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 800px;
    margin: auto;
    gap: 20px;
    background: #e7e5e5;
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.account-body span {
    color: red;
}

.account-body input {
    padding: 10px;
    border: solid 1px gray;
    border-radius: 10px;
    margin-top: 5px;
}

.account-body .login {
    flex: 1;
}

.account-body .login button { 
    background: var(--green-2-color);
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    border-radius: 27px;
    font-weight: 800;
    margin-bottom: 10px;
}

.account-body .login .login-message .login-success { 
    color: green;
    display: none;
}

.account-body .login .login-message .login-error { 
    color: red;
    display: none;
}

.account-body .register .register-message .register-success { 
    color: green;
    display: none;
}

.account-body .register .register-message .register-error { 
    color: red;
    display: none;
}

.account-body .login div {
    margin-bottom: 10px;
}

.account-body .login h1 {
    border-bottom: solid 1px gray;
    width: 100%;
    margin-bottom: 20px;
}

.account-body .login .account-link {
    display: none;
}

.account-body .login .account-link a {
    color: black;
}

.account-body .register {
    flex: 1;
}

.account-body .register button {
    background: var(--green-2-color);
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    border-radius: 27px;
    font-weight: 800;
    margin-bottom: 10px;
}

.account-body .register div {
    margin-bottom: 10px;
}

.account-body .register h1 {
    border-bottom: solid 1px gray;
    width: 100%;
    margin-bottom: 20px;
}

.account-body .register .user-names {
    display: flex;
    gap: 10px;
}

.account-body .account-menu {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #8d5050;
}

.account-body .account-menu a {
    padding: 10px;
    color: white;
    font-size: 22px;
    text-decoration: none;
}

.account-body .account-menu a.account-link-selected {
    background: lightgray;
    border-radius: 30px;
    color: black;
}

.account-body .account-details {
    flex: 1;
    padding: 10px;
    padding-bottom: 10px;
}

.account-body .account-details .user-names {
    display: flex;
    gap: 10px;
}

.account-body .account-details div {
    margin-bottom: 10px;
}

.account-body .account-details h1 { 
    border-bottom: solid 1px gray;
    width: 100%;
    margin-bottom: 20px;
}

.account-body .account-details .save-user-infos-button { 
    background: var(--green-2-color);
    padding: 10px;
    border: none;
    border-radius: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
}

.account-body .account-details .save-user-infos-message {
    border-bottom: solid 1px gray;
    margin-bottom: 20px;
    padding-bottom: 10px; 
}

.account-body .account-details .save-user-infos-success {
    color: green;
    display: none;
}

.account-body .account-details .save-user-infos-error {
    color: red;
    display: none;
}

.account-body .account-details .change-user-password-button { 
    background: var(--green-2-color);
    padding: 10px;
    border: none;
    border-radius: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
}

.account-body .account-details .change-user-password-success {
    color: green;
    display: none;
}

.account-body .account-details .change-user-password-error {
    color: red;
    display: none;
}

.account-body.logged-in {
    padding: 0px;
    gap: 10px;
}

.account-container {
    flex: 1;
}

.loading-span {
    display: none;
    padding: 10px;
}

.orders-table {
    border-collapse: collapse;
}

.orders-table th,td {
    border: solid 1px gray;
    padding: 10px;
    vertical-align: top;
}

/**
* Mobile
*/
@media (max-width: 600px) {
    .account-section {
        padding: 20px;
    }

    .account-body {
        flex-direction: column;
    }

    .account-body .login {
        width: 100%;
    }

    .account-body .register {
        width: 100%;
    }

    .account-body input {
        width: 100%;
    }

    .account-body .register .user-names {
        flex-direction: column;
    }

    .account-head {
        margin: 0px;
        margin-bottom: 20px;
    }

    .account-body .account-menu {
        width: 100%;
    }

    .account-body .account-details {
        width: 100%; 
    }

    .account-body .account-details .user-names {
        flex-direction: column;
    }
}